Skip to content

Commit

Permalink
This repo is now about ponies.
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Aug 14, 2012
1 parent 33d2495 commit 4382c2a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,2 +1,2 @@
pulsemix
pulsemix.o
ponymix
ponymix.o
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -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
10 changes: 5 additions & 5 deletions pulsemix.1 → 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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pulsemix.c → 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
Expand Down
12 changes: 6 additions & 6 deletions 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

Expand All @@ -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 ))
Expand Down

0 comments on commit 4382c2a

Please sign in to comment.