update README for 43.05
[rofl0r-df-mayday.git] / mayday-patch.sh
blobf9ab00669b5da89374a28905a2eb3722fda66e53
1 #!/bin/sh
2 echo "*** mayday-patchset for POSIX by rofl0r ***"
3 echo -ne "\n"
4 echo "trying to apply mayday.diff...."
5 LOG=mayday-patch.log
6 patch -p1 --verbose < mayday.diff > $LOG
7 ERRS=`cat $LOG | grep "FAILED"`
8 if [ ! -z "$ERRS" ]
9 then
10 echo -ne "there were some errors, manual intervention is required\n"
11 echo $ERRS
12 echo "for more details see $LOG"
13 else
14 echo "success! "
15 echo "deleting .orig files which trigger a bug in DF..."
16 find . -name '*.orig' -exec rm -f {} \;
17 echo "now fixing the characters in language files."
18 export LANG=C
19 find ./raw/objects -name 'language*' -exec ./apply-charpatch.sh {} \;
20 echo "disabling true type..."
21 sed -i 's,TRUETYPE:16,TRUETYPE:NO,' data/init/init.txt
23 echo "done!"