]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
prefix pk3 with 'z-' so it can override xon stock files
authordrjaska <drjaska83@gmail.com>
Wed, 14 Jun 2023 01:19:08 +0000 (04:19 +0300)
committerdrjaska <drjaska83@gmail.com>
Sun, 28 Jul 2024 08:29:37 +0000 (11:29 +0300)
qcsrc/tools/git-progs-pk3packer.sh

index 5223b7ecdf05606b1c54729a6b6dccda4121ae9a..2d5356c34f1c56608f5c5ffab501f19f66e2a9f7 100755 (executable)
@@ -88,7 +88,7 @@ packagercleanup() {
        rm progs.txt
        rm changes.diff
 
-       rm git-progspk3.zip 2> /dev/null
+       rm z-git-progspk3.zip 2> /dev/null
 }
 trap 'packagercleanup' EXIT INT QUIT TERM
 
@@ -115,28 +115,28 @@ else
        printf "%s\n" "No changes compared to latest local master branch." > changes.diff
 fi
 
-# zip everything into git-progspk3.zip
+# zip everything into z-git-progspk3.zip
 # shellcheck disable=SC2086 # Intended splitting of EDITEDCFGS
-zip git-progspk3.zip csprogs.dat progs.dat menu.dat progs.txt "csprogs-$HASH.dat" "progs-$HASH.dat" $EDITEDCFGS changes.diff
+zip z-git-progspk3.zip csprogs.dat progs.dat menu.dat progs.txt "csprogs-$HASH.dat" "progs-$HASH.dat" $EDITEDCFGS changes.diff
 
 # Move the package to Downloads directory for easy sharing and house keeping
 if [ "$(xdg-user-dir DOWNLOAD)" != "$HOME" ] && [ -d "$(xdg-user-dir DOWNLOAD)" ]
 then
-       mv -v "$PWD/git-progspk3.zip" "$(xdg-user-dir DOWNLOAD)/git-progs-$BRANCH-$HASH.pk3"
+       mv -v "$PWD/z-git-progspk3.zip" "$(xdg-user-dir DOWNLOAD)/z-git-progs-$BRANCH-$HASH.pk3"
        printf "\n%s\n%s\n\n" "Packaged progs based on $BRANCH's $HASH commit" \
-               "and moved them to $(xdg-user-dir DOWNLOAD)/git-progs-$BRANCH-$HASH.pk3"
+               "and moved them to $(xdg-user-dir DOWNLOAD)/z-git-progs-$BRANCH-$HASH.pk3"
 
 elif [ -d "$HOME/Downloads" ]
 then
-       mv -v "$PWD/git-progspk3.zip" "$HOME/Downloads/git-progs-$BRANCH-$HASH.pk3"
+       mv -v "$PWD/z-git-progspk3.zip" "$HOME/Downloads/z-git-progs-$BRANCH-$HASH.pk3"
        printf "\n%s\n%s\n\n" "Packaged progs based on $BRANCH's $HASH commit" \
-               "and moved them to ~/Downloads/git-progs-$BRANCH-$HASH.pk3"
+               "and moved them to ~/Downloads/z-git-progs-$BRANCH-$HASH.pk3"
 
 else
-       mv -v "git-progspk3.zip" "git-progs-$BRANCH-$HASH.pk3"
+       mv -v "z-git-progspk3.zip" "z-git-progs-$BRANCH-$HASH.pk3"
        printf "\n%s\n%s\n%s\n\n" "Packaged progs based on $BRANCH's $HASH commit" \
                "but could not move it out to Downloads dir" \
-               "git-progs-$BRANCH-$HASH.pk3 resides in $PWD"
+               "z-git-progs-$BRANCH-$HASH.pk3 resides in $PWD"
 fi
 
 printf '%s\n%s\n%s\n\n' "The pk3 can be moved to Xonotic's userdir which is:" \