All pastes #466546 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-01 01:23 UTC
rendered paste body
#!/bin/bash
if [ $# -eq 0 ] ; then echo "Can't burn a blank CD, boss"; exit; fi;
         
mkdir ~/.writecd
mkdir ~/.writecd/specimens
echo "  ---  Copying files..." ;echo
cp $@ ~/.writecd/specimens 
echo; echo "  ---  Creating ISO archive..."; echo
mkisofs -o ~/.writecd/writecd.iso ~/.writecd/specimens/*
echo; echo "  ---  Burning the CD..."; echo
cdrecord ~/.writecd/writecd.iso
echo; echo "  ---  Cleaning up..."; echo
rm -rf ~/.writecd