Update Run.sh
tmporary disable map injectino in mod
This commit is contained in:
15
Run.sh
15
Run.sh
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user