Added bash versions of all the map preparing and merging scripts in 'tools/mapmerge2/'. (#6929)

* Added bash versions of all the map preparing and merging scripts in 'tools/mapmerge2/'.

* Renamed all Linux map preparation bash scripts.

* All Linux map preparation bash scripts now assume the file is being executed from the mapmerge2 directory, making the same assumption the .bat files make.

* The map merge Linux bash script now assumes the script is being run from the mapmerge2 directory, making the same assumption the .bat file makes.
This commit is contained in:
Panter
2019-11-06 18:46:11 +01:00
committed by Werner
parent 4bffdbd54b
commit daf29bf016
7 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
cd ../../maps/aurora
for f in *.dmm; do
cp -- "$f" "${f%.dmm}.dmm.backup"
done
echo "All dmm files in the maps/aurora directory have been backed up."
echo "Now you can make your changes."
echo "---"
echo "Remember to run mapmerge.sh just before you commit your changes!"
echo "---"

View File

@@ -0,0 +1,11 @@
cd ../../maps/exodus
for f in *.dmm; do
cp -- "$f" "${f%.dmm}.dmm.backup"
done
echo "All dmm files in the maps/exodus directory have been backed up."
echo "Now you can make your changes."
echo "---"
echo "Remember to run mapmerge.sh just before you commit your changes!"
echo "---"

View File

@@ -0,0 +1,11 @@
cd ../../maps/dungeon_spawns
for f in *.dmm; do
cp -- "$f" "${f%.dmm}.dmm.backup"
done
echo "All dmm files in the maps/dungeon_spawns directory have been backed up."
echo "Now you can make your changes."
echo "---"
echo "Remember to run mapmerge.sh just before you commit your changes!"
echo "---"

View File

@@ -0,0 +1,11 @@
cd ../../maps/runtime
for f in *.dmm; do
cp -- "$f" "${f%.dmm}.dmm.backup"
done
echo "All dmm files in the maps/runtime directory have been backed up."
echo "Now you can make your changes."
echo "---"
echo "Remember to run mapmerge.sh just before you commit your changes!"
echo "---"

View File

@@ -0,0 +1,11 @@
cd ../../maps/space_ruins
for f in *.dmm; do
cp -- "$f" "${f%.dmm}.dmm.backup"
done
echo "All dmm files in the maps/space_ruins directory have been backed up."
echo "Now you can make your changes."
echo "---"
echo "Remember to run mapmerge.sh just before you commit your changes!"
echo "---"

View File

@@ -0,0 +1,9 @@
export MAPROOT="../../maps/aurora/"
export TGM="1"
python3 mapmerge.py
cd ../../maps/aurora
for f in *.dmm; do
unix2dos $f
done