yquake2remaster/stuff/cdripper.sh
Yamagi Burmeister d4a60e7b77 - Add yq2.cfg to the code, an example to stuff/ and metion it in the
README
- Rename tools/ to stuff/
2011-10-09 17:55:10 +00:00

21 lines
562 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 -e "\n Ripping done, move music/ directory to /your/path/to/quake2/game/music/"