mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* extfs/audio.in: Fix non-POSIX constructs.
From GoTaR <gotar@poczta.onet.pl>
This commit is contained in:
parent
b60bc8223c
commit
0a0ac18aae
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user