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
@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: CodePanter
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- backend: "Added bash versions of all the map preparing and merging scripts in 'tools/mapmerge2/'."
+11
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 "---"
+11
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 "---"
@@ -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 "---"
+11
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 "---"
+11
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 "---"
+9
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