From: Freddy Date: Tue, 20 Apr 2021 16:02:08 +0000 (+0200) Subject: mapping-helper.sh: put maps in "maps" directory X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F67%2Fhead;p=xonotic%2Fxonotic.git mapping-helper.sh: put maps in "maps" directory --- diff --git a/misc/tools/mapping-helper.sh b/misc/tools/mapping-helper.sh index c28ddee2..5ad9ab32 100755 --- a/misc/tools/mapping-helper.sh +++ b/misc/tools/mapping-helper.sh @@ -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 () {