Update Run.sh

tmporary disable map injectino in mod
This commit is contained in:
2023-10-02 09:59:54 +02:00
parent abf96c6ad6
commit 86fae28ec9

15
Run.sh
View File

@@ -6,12 +6,15 @@ MOD_NAME="$3"
function install() {
echo "SRC dir: $SCRIPT_DIR"
echo "DEST dir: $OUTPUT_DIR"
rsync -a $SCRIPT_DIR/usermaps/ $OUTPUT_DIR/usermaps/ --exclude '.git' --exclude '*.iwd'
tempdir=$(mktemp -d)
find $SCRIPT_DIR/usermaps/ -type f -name \*.iwd | rsync -avh --files-from - --no-relative / $tempdir
find $tempdir -type f -name '*.iwd' -print0 | xargs --no-run-if-empty -0 basename -a | xargs -I@ mv $tempdir/@ $tempdir/zzz_@
rsync -avh $tempdir/ $OUTPUT_DIR/mods/$MOD_NAME
rm -Rf "$tempdir" ||:
rsync -a $SCRIPT_DIR/usermaps/ $OUTPUT_DIR/usermaps/ --exclude '.git'
# rsync -a $SCRIPT_DIR/usermaps/ $OUTPUT_DIR/usermaps/ --exclude '.git' --exclude '*.iwd'
# tempdir=$(mktemp -d)
# find $SCRIPT_DIR/usermaps/ -type f -name \*.iwd | rsync -avh --files-from - --no-relative / $tempdir
# find $tempdir -type f -name '*.iwd' -print0 | xargs --no-run-if-empty -0 basename -a | xargs -I@ mv $tempdir/@ $tempdir/zzz_@
# rsync -avh $tempdir/ $OUTPUT_DIR/mods/$MOD_NAME
# rm -Rf "$tempdir" ||:
echo install ok
}