diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-03-04 08:50:42 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-03-04 08:50:42 +0100 |
commit | 43bc094e10b5fd9c3e59c4fcfa79ab47b93b97f9 (patch) | |
tree | 531bc7a45816d05bbeed80b4d8f021f586332192 /bin/tarballrelease | |
parent | 0fa40bacf22233c05aa5e8e92dfe6fbb12b835e9 (diff) | |
download | buildscripts-43bc094e10b5fd9c3e59c4fcfa79ab47b93b97f9.tar.gz buildscripts-43bc094e10b5fd9c3e59c4fcfa79ab47b93b97f9.tar.bz2 buildscripts-43bc094e10b5fd9c3e59c4fcfa79ab47b93b97f9.zip |
tarballrelease: drop debian/ folders, preserve debian/changelog as ChangeLog, drop x2goclient.spec
Diffstat (limited to 'bin/tarballrelease')
-rwxr-xr-x | bin/tarballrelease | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/tarballrelease b/bin/tarballrelease index 84b0648..255bd7e 100755 --- a/bin/tarballrelease +++ b/bin/tarballrelease @@ -38,6 +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" && 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" ) 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" |