summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorX2go Administrator <x2go-admin@minobo.das-netzwerkteam.de>2012-01-18 22:11:13 +0100
committerX2go Administrator <x2go-admin@minobo.das-netzwerkteam.de>2012-01-18 22:11:13 +0100
commit8ce1824780bb0c77df4e351009bdb5d1a5610651 (patch)
tree0392453c2abbf6f4e1ada7b6435cd4274291e82a
parentd409c118b3c69f94a720029dc9df78c749d2f818 (diff)
downloadbuildscripts-8ce1824780bb0c77df4e351009bdb5d1a5610651.tar.gz
buildscripts-8ce1824780bb0c77df4e351009bdb5d1a5610651.tar.bz2
buildscripts-8ce1824780bb0c77df4e351009bdb5d1a5610651.zip
add orig.tar.gz file support, if exists...
-rwxr-xr-xbin/build-package3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/build-package b/bin/build-package
index 7d7977f..bfc6e2a 100755
--- a/bin/build-package
+++ b/bin/build-package
@@ -172,11 +172,12 @@ build_packages() {
git clone --local "$PROJECT_DIR" "$TEMP_DIR/$PROJECT/"
cd "$TEMP_DIR/$PROJECT"
git checkout $CHECKOUT || git checkout master
+ find $PROJECT_DIR/../ -type f -maxdepth 0 -mindepth 0 | grep $PROJECT_*.orig.tar.gz &>/dev/null && cp $PROJECT_DIR/../$PROJECT_*.orig.tar.gz ..
GITREV=$(gitrevno)
# we always build native packages for our repos
test -f debian/source/format && cat debian/source/format | egrep '^3.0.*\(quilt\)$' >/dev/null && {
echo "3.0 (native)" > debian/source/format
- }
+ }
# for Ubuntu version is the codename of the distribution release
VERSION=$l_CODENAME