]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
mapping-helper.sh: put maps in "maps" directory DefaultUser/mapping-helper 67/head
authorFreddy <schro.sb@gmail.com>
Tue, 20 Apr 2021 16:02:08 +0000 (18:02 +0200)
committerFreddy <schro.sb@gmail.com>
Tue, 20 Apr 2021 16:02:08 +0000 (18:02 +0200)
misc/tools/mapping-helper.sh

index c28ddee2a891f6a3c999fc22eb8e7a0d7d6d80ac..5ad9ab32198f2c46899981b521ab3f9fe4c34bbc 100755 (executable)
@@ -16,8 +16,8 @@ create_stub () {
     [[ -d "${BASEDIR}/map-${MAPNAME}.pk3dir" ]] && { echo "Map ${MAPNAME} already exists"; exit -1; }
     TEMP=$(find ${BASEDIR} -maxdepth 1 -type d -name "map-"${MAPNAME}"_[[:digit:]].[[:digit:]][[:digit:]].pk3dir")
     [[ -n "${TEMP}" ]] && { echo "Map ${MAPNAME} already exists"; exit -1; }
-    mkdir -p "${BASEDIR}/map-${MAPNAME}_0.01.pk3dir/"{cubemaps,env,map,models,scripts,sounds,textures}
-    touch "${BASEDIR}/map-${MAPNAME}_0.01.pk3dir/map/${MAPNAME}_0.01.map"
+    mkdir -p "${BASEDIR}/map-${MAPNAME}_0.01.pk3dir/"{cubemaps,env,maps,models,scripts,sounds,textures}
+    touch "${BASEDIR}/map-${MAPNAME}_0.01.pk3dir/maps/${MAPNAME}_0.01.map"
 }
 
 package () {