GeneralScott wrote:Oh, I found the command line! Duh... What do you put into it again. (sorry I'm a clueless noob)
#!/bin/bash
archivename='bombable3h.zip'
[ -e bombable3h.zip ] || {
echo "error: $archivename needed in `pwd`
exit
}
#first rm all files from bombable3h.zip
for f in `unzip -l $archivename|awk '{print $4}'`; do
[ -f $f ] && rm -f $f
done
#correct these altered CVS conf files
list="Aircraft/SPAD-VII/Dialogs
Aircraft/SPAD-VII/Models/Interior/Panel
Aircraft/sopwithCamel/Models/Textures
Aircraft/sopwithCamel/Models/uiuc
Aircraft/sopwithCamel/Sounds/uiuc
Aircraft/sopwithCamel/Sounds/yasim
Aircraft/sopwithCamel/Models/uiuc/sopwithCamel"
for l in $list; do
echo data/$l > $l/CVS/Repository
echo ':pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9' > $l/CVS/Root
done
#get a clean new base
cvs update -dP
#then patch all files already existing in CVS, and modified in bombable3h.zip
#this may need to be processed several times
echo "now we want to patch some files..."
echo "you may be asked if you assume -R, answer y (yes)"
echo "I'll ask you at the end of the process if you had to answer to \`patch\'"
echo "if you've had to answer to patch we'll need to do the process again"
echo "ready ?"
read
answer="y"
while [ $answer -eq "y" ]; do
for f in `unzip -l $archivename|awk '{print $4}'`; do
[ -f $f ] && {
unzip -q $archivename $f -d bombable
diff -EbwBa bombable/$f $f > bombdiff
[ "$?" -eq "1" ] && patch $f bombdiff
}
done
rm -fr bombdiff bombable
echo "have you been asked to assume -R at least once ? (y or n)"
read answer
}
#then add all files not included in CVS
for f in `unzip -l $archivename|awk '{print $4}'|grep -v '/CVS/'`; do
[ -f $f ] || unzip $archivename $f
done
exit 0
hellcat wrote:I have managed to make every aircraft carrier in FG with bombable effects. I will make them available soon along with a few bombable AI aircraft and new scenarios, including a few planes I modified to use in those scenarios
Canseco wrote:Any news about development?
I want to make a event, but i need carriers to be sink on MP,
Users browsing this forum: benih and 7 guests