Ports Kun-Peng's general map merge scripts.

These backups all *.dmm files in the maps folder, rather than those with specific names.
This commit is contained in:
PsiOmegaDelta
2015-12-19 22:01:38 +01:00
parent 9d12076a61
commit 8b3724e3e3
3 changed files with 10 additions and 12 deletions

View File

@@ -1,10 +1,9 @@
#!/bin/bash
#!/bin/sh
for i in {1..6}
for MAPFILE in ../../maps/*.dmm
do
MAPFILE="exodus-$i.dmm"
git show HEAD:maps/$MAPFILE > tmp.dmm
java -jar MapPatcher.jar -clean tmp.dmm '../../maps/'$MAPFILE '../../maps/'$MAPFILE
MAPNAME=$(basename $MAPFILE)
git show HEAD:maps/$MAPNAME > tmp.dmm
java -jar MapPatcher.jar -clean tmp.dmm $MAPFILE $MAPFILE
rm tmp.dmm
done