]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
also make a foo-full-HASH.pk3 when building a map that also contains files of the...
authorRudolf Polzer <divVerent@alientrap.org>
Thu, 23 Sep 2010 14:41:57 +0000 (16:41 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Thu, 23 Sep 2010 14:41:57 +0000 (16:41 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 7f208183aa3928e3b142bd19e3885e8c170e3af1..90a012325b829c864083833b20f87292821e07db 100755 (executable)
@@ -137,8 +137,11 @@ buildthemap()
        fi
        zip -9r "$M-$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M.irc" "maps/$M/" "maps/$M.lin" "gfx/${M}_mini.tga"
        ln -snf "../$M-$blobhash.pk3" "$M.pk3" # from ALL branches, so beware!
-       rsync -vaSHP "$M-$blobhash.pk3" "$url_ssh"
-       rsync -vaSHP "$M.pk3" "$url_ssh""latest/"
+       cp "$M-$blobhash.pk3" "$M-full-$blobhash.pk3"
+       zip -9r "$M-full-$blobhash.pk3" `git diff --name-only --diff-filter=ACMRTUXB master...HEAD` || true
+       ln -snf "../$M-full-$blobhash.pk3" "$M-full.pk3" # from ALL branches, so beware!
+       rsync -vaSHP "$M-$blobhash.pk3" "$M-full-$blobhash.pk3" "$url_ssh"
+       rsync -vaSHP "$M.pk3" "$M-full.pk3" "$url_ssh""latest/"
        if [ -n "$IRCSPAM" ]; then
                $IRCSPAM < "maps/$M.irc"
        fi