summaryrefslogtreecommitdiff
path: root/bin/tarballrelease
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-06-29 22:25:55 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-06-29 22:25:55 +0200
commit1dae61656659006075f2a75065a968122025e5d8 (patch)
tree9fcb3a36284a61ff5bdef2bc60444c07b078c76e /bin/tarballrelease
parent90d36fce22eb970aef23c4f28cfd75ccfd71eb29 (diff)
downloadbuildscripts-1dae61656659006075f2a75065a968122025e5d8.tar.gz
buildscripts-1dae61656659006075f2a75065a968122025e5d8.tar.bz2
buildscripts-1dae61656659006075f2a75065a968122025e5d8.zip
use dash instead of underscore as version delimiter
Diffstat (limited to 'bin/tarballrelease')
-rwxr-xr-xbin/tarballrelease10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/tarballrelease b/bin/tarballrelease
index 1b58077..84b0648 100755
--- a/bin/tarballrelease
+++ b/bin/tarballrelease
@@ -35,9 +35,9 @@ TEMP_DIR="$(mktemp -d)"
echo $MANIFEST
trap "rm -f \"${MANIFEST}\"; rm -rf \"${TEMP_DIR}\"" 0
-git clone . "$TEMP_DIR/${PROJECT}_$RELEASE"
-( set -e; cd "$TEMP_DIR/${PROJECT}_$RELEASE/" && git checkout ${CHECKOUT} 2>/dev/null || true )
-( set -e; cd "$TEMP_DIR" && rm -Rf "${PROJECT}_$RELEASE/.git"* )
-( set -e; cd "$TEMP_DIR" && find "${PROJECT}_$RELEASE" -type f | sed 's/^\.*\/*//' | sort > "$MANIFEST" )
+git clone . "$TEMP_DIR/${PROJECT}-$RELEASE"
+( set -e; cd "$TEMP_DIR/${PROJECT}-$RELEASE/" && git checkout ${CHECKOUT} 2>/dev/null || true )
+( set -e; cd "$TEMP_DIR" && rm -Rf "${PROJECT}-$RELEASE/.git"* )
+( set -e; cd "$TEMP_DIR" && find "${PROJECT}-$RELEASE" -type f | sed 's/^\.*\/*//' | sort > "$MANIFEST" )
mkdir -p "$TARGETDIR/_releases_/source/${PROJECT}/"
-tar c -C "$TEMP_DIR" --owner 0 --group 0 --numeric-owner --no-recursion --files-from "$MANIFEST" | gzip -n > "$TARGETDIR/_releases_/source/${PROJECT}/${PROJECT}_$RELEASE.tar.gz"
+tar c -C "$TEMP_DIR" --owner 0 --group 0 --numeric-owner --no-recursion --files-from "$MANIFEST" | gzip -n > "$TARGETDIR/_releases_/source/${PROJECT}/${PROJECT}-$RELEASE.tar.gz"