aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-14 08:58:50 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-14 08:58:50 -0400
commit4382c2acf0a893eb4b96c3465af73523560a4815 (patch)
tree635bd8f5235999e8786860ae358cbb546e1af90a
parent33d2495f66f052377794473bc58ce60e79a9be34 (diff)
downloadmirror-ponymix-4382c2acf0a893eb4b96c3465af73523560a4815.tar.gz
mirror-ponymix-4382c2acf0a893eb4b96c3465af73523560a4815.tar.bz2
mirror-ponymix-4382c2acf0a893eb4b96c3465af73523560a4815.zip
This repo is now about ponies.
-rw-r--r--.gitignore4
-rw-r--r--Makefile14
-rw-r--r--ponymix.1 (renamed from pulsemix.1)10
-rw-r--r--ponymix.c (renamed from pulsemix.c)2
-rwxr-xr-xruntests12
5 files changed, 21 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index 04e757e..af83c41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-pulsemix
-pulsemix.o
+ponymix
+ponymix.o
diff --git a/Makefile b/Makefile
index 1b7df79..973b8c0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,14 @@ CC = gcc -std=gnu99
CFLAGS := -Wall -Wextra -pedantic -O2 -g -D_REENTRANT $(CFLAGS)
LDFLAGS := -lpulse -lm $(LDFLAGS)
-pulsemix: pulsemix.o
+ponymix: ponymix.o
-install: pulsemix
- install -Dm755 pulsemix $(DESTDIR)/usr/bin/pulsemix
- install -Dm644 pulsemix.1 $(DESTDIR)/usr/share/man/man1/pulsemix.1
+install: ponymix
+ install -Dm755 ponymix $(DESTDIR)/usr/bin/ponymix
+ install -Dm644 ponymix.1 $(DESTDIR)/usr/share/man/man1/ponymix.1
-check: pulsemix
- ./runtests ./pulsemix
+check: ponymix
+ ./runtests ./ponymix
clean:
- $(RM) pulsemix pulsemix.o
+ $(RM) ponymix ponymix.o
diff --git a/pulsemix.1 b/ponymix.1
index 3665078..4c1326e 100644
--- a/pulsemix.1
+++ b/ponymix.1
@@ -1,10 +1,10 @@
-.TH PULSEMIX "1" "August 12" "pulsemix" "User Commands"
+.TH ponymix "1" "August 12" "ponymix" "User Commands"
.SH NAME
-pulsemix \- cli volume control for PulseAudio
+ponymix \- cli volume control for PulseAudio
.SH SYNOPSIS
-\fBpulsemix\fP [options] \fIoperation\fP [args]
+\fBponymix\fP [options] \fIoperation\fP [args]
.SH DESCRIPTION
-\fBpulsemix\fP is a command line volume control for PulseAudio, letting you
+\fBponymix\fP is a command line volume control for PulseAudio, letting you
perform many operations on both device and application sinks and source.
.SH OPTIONS
.PP
@@ -52,7 +52,7 @@ volume in this way is capped at 0.
.IP "\fBmute\fR, \fBunmute\fR, \fBtoggle\fR"
Mute, unmute, or toggle the mute status on the target.
.IP "\fBis-muted\fR"
-Check if the target is muted. pulsemix will exit with the status 0 if muted,
+Check if the target is muted. ponymix will exit with the status 0 if muted,
and non-zero otherwise.
.SS Device Operations
.PP
diff --git a/pulsemix.c b/ponymix.c
index c053db7..1a57be4 100644
--- a/pulsemix.c
+++ b/ponymix.c
@@ -1,6 +1,6 @@
/* Copyright (c) 2012 Dave Reisner
*
- * pulsemix.c
+ * ponymix.c
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
diff --git a/runtests b/runtests
index 747c5bf..a0762cb 100755
--- a/runtests
+++ b/runtests
@@ -1,14 +1,14 @@
#!/bin/bash
-pulsemix=$1
+ponymix=$1
-if [[ -z $pulsemix ]]; then
- printf 'usage: %s path-to-pulsemix\n' "${0##*/}"
+if [[ -z $ponymix ]]; then
+ printf 'usage: %s path-to-ponymix\n' "${0##*/}"
exit 1
fi
-if [[ ! -x $pulsemix ]]; then
- printf '==> ERROR: pulsemix binary not found at %s\n' "$pulsemix"
+if [[ ! -x $ponymix ]]; then
+ printf '==> ERROR: ponymix binary not found at %s\n' "$ponymix"
exit 1
fi
@@ -19,7 +19,7 @@ do_test() {
(( ++testno ))
- result=$("$pulsemix" "$verb" -- ${arg+"$arg"} 2>/dev/null)
+ result=$("$ponymix" "$verb" -- ${arg+"$arg"} 2>/dev/null)
if [[ $result != $expected ]]; then
printf '==> test %d FAIL: expected %s, got %s\n' "$testno" "$expected" "$result"
(( ++fail ))