* extfs/audio.in: Fix non-POSIX constructs.

From GoTaR <gotar@poczta.onet.pl>
This commit is contained in:
Pavel Roskin 2003-08-08 07:58:09 +00:00
parent b60bc8223c
commit 0a0ac18aae
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-08-08 Pavel Roskin <proski@gnu.org>
* extfs/audio.in: Fix non-POSIX constructs.
From GoTaR <gotar@poczta.onet.pl>
2003-07-28 Andrew V. Samoilov <sav@bcs.zp.ua>
* ftpfs.c (login_server): Undo last change.

View File

@ -18,9 +18,8 @@ audiofs_list ()
cdparanoia -Q -d $1 2>&1 | grep '^[ 0-9][ 0-9][ 0-9]\.' | while true
do
read A B C || break
A=`echo $A | sed 's/\.//'`
SIZE=$[44+$B*2352]
if (( $A < 10 )); then A="0$A"; fi
A=`echo $A | sed -e 's/\.//' -e 's/^\(.\)$/0\1/'`
SIZE=$((44+$B*2352))
echo "-r--r--r-- 1 0 0 $SIZE Jan 1 0:00 track-${A}.wav"
done
}