diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-03-04 09:02:00 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-03-04 09:02:10 +0100 |
commit | 441941596a586f8c31f1b1893bce50477f916e3c (patch) | |
tree | cea41eb9bf5fb2376c85c217e6f77659685f0214 /bin/tarballrelease | |
parent | c695a2e1edfedfa94af1faf6f620b0783f1246b4 (diff) | |
download | buildscripts-441941596a586f8c31f1b1893bce50477f916e3c.tar.gz buildscripts-441941596a586f8c31f1b1893bce50477f916e3c.tar.bz2 buildscripts-441941596a586f8c31f1b1893bce50477f916e3c.zip |
tarballrelease: fix paths
Diffstat (limited to 'bin/tarballrelease')
-rwxr-xr-x | bin/tarballrelease | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/tarballrelease b/bin/tarballrelease index 5b7fed1..1696d9f 100755 --- a/bin/tarballrelease +++ b/bin/tarballrelease @@ -38,9 +38,9 @@ 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" && test -f ChangeLog || { test -f debian/changelog && cp debian/changelog ChangeLog; } ) -( set -e; cd "$TEMP_DIR" && rm -Rf debian/ ) -( set -e; cd "$TEMP_DIR" && rm -f *.spec ) -( set -e; cd "$TEMP_DIR" && find "${PROJECT}-$RELEASE" -type f | sed 's/^\.*\/*//' | sort > "$MANIFEST" ) +( set -e; cd "$TEMP_DIR/${PROJECT}-$RELEASE/" && test -f ChangeLog || { test -f debian/changelog && cp debian/changelog ChangeLog || true; } ) +( set -e; cd "$TEMP_DIR/${PROJECT}-$RELEASE/" && rm -Rf debian/ ) +( set -e; cd "$TEMP_DIR/${PROJECT}-$RELEASE/" && rm -f *.spec ) +( 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" |