annotate audtool/examples/infoline.sh @ 1597:2685ac3bd8f6 trunk

[svn] CXXFLAGS fixes by Mike Frysinger (Gentoo).
author chainsaw
date Sat, 26 Aug 2006 12:00:05 -0700
parents 6af3f8fb2ed0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1200
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
1 #!/bin/sh
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
2 UNUSED=0
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
3 while [ $UNUSED -lt 1 ]; do
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
4 PLAYTIME=$(audtool current-song-output-length)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
5 SONGTITLE=$(audtool current-song)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
6 SONGLEN=$(audtool current-song-length)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
7 echo -n "[>] $PLAYTIME $SONGTITLE ($SONGLEN) "
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
8 sleep 1
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
9 printf "\r"
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
10 done