yquake2remaster/stuff/cdripper.sh
2012-04-30 08:43:08 +02:00

22 lines
543 B
Bash
Executable file

#!/bin/sh
# simple script that rips CDs to a format useable by Yamagis Quake2 client
# Needs cdparanoia and oggenc, useable with Quake II and both addons.
# Create directory
mkdir music
cd music
# rip all tracks beginning with second one (the first track is data)
cdparanoia -B "2-"
# could certainly be more elegant..
for i in "02" "03" "04" "05" "06" "07" "08" "09" "10" "11"
do
oggenc -q 6 -o $i.ogg track$i.cdda.wav
done
# remove .wav files
rm *.wav
echo '
Ripping done, move music/ directory to /your/path/to/quake2/game/music/'