From 1c22a5820ff89fab0c8288432150ba62f276f389 Mon Sep 17 00:00:00 2001 From: opensides Date: Wed, 2 Dec 2009 08:10:30 +0000 Subject: [PATCH] - Added creation of orig.tar.gz for goto git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14853 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/make-gosa-package | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gosa-core/contrib/make-gosa-package b/gosa-core/contrib/make-gosa-package index 58b32206a..7bad3a804 100755 --- a/gosa-core/contrib/make-gosa-package +++ b/gosa-core/contrib/make-gosa-package @@ -266,11 +266,20 @@ then MAKE_GOTO=$(echo -n $MAKE_GOTO | sed "s/$i//") done - for goto in $MAKE_GOTO; do - mv "goto-${BNAME}/$goto" . - done + for goto in $MAKE_GOTO; do + + mv "goto-${BNAME}/$goto" . + + echo "Packing original sources '$goto'..." + GOTO_VERSION=$(cat $goto/debian/changelog | head -n 1 | sed -n -e 's/.*(\([^-]*\).*/\1/p') + tar -c --exclude "$goto/debian" -f "${goto}_${GOTO_VERSION}.orig.tar" $goto + + echo "Compressing sources..." + gzip -f -9 "${goto}_${GOTO_VERSION}.orig.tar" + + done - rm -rf goto-${BNAME} + rm -rf goto-${BNAME} fi echo "Deploying patches..." -- 2.30.2