Code

Updated to the gosa package builder
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Jun 2008 15:19:09 +0000 (15:19 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Jun 2008 15:19:09 +0000 (15:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11181 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/contrib/make-gosa-package

index fc3e36aeadef7a9314bb5891edd376ea2b74ac49..461b4f135087b0b1c8986b075a2fdde73c9a99a3 100755 (executable)
@@ -1,9 +1,13 @@
 #!/bin/sh
+
+# TODO: getopts ###########################################################
 RELEASE_REASON="GOsa svn snapshot"
 BRANCH="trunk"
-SECTION="gonicus"
+SECTION="web"
+SI_SECTION="utils"
 TARGET_RELEASE="etch"
 MAKE_PLUGINS=""
+###########################################################################
 
 [ $BRANCH = "trunk" ] || BRANCH="branches/$BRANCH"
 echo "Loading svn information for '${BRANCH}'..."
@@ -84,15 +88,15 @@ for patch in $(find patches -type f | grep -v .svn); do
 done
 
 # Passe section im GOsa_DIR an
-sed -i "s/^Section: web/Section: $SECTION\/web/g" ${GOSA_DIR}/debian/control
-sed -i "s/^Section: utils/Section: $SECTION\/utils/g" ${GOSA_SI_DIR}/debian/control
+sed -i "s#^Section: web#Section: $SECTION#g" ${GOSA_DIR}/debian/control
+sed -i "s#^Section: utils#Section: $SI_SECTION#g" ${GOSA_SI_DIR}/debian/control
 
 for plugin in $MAKE_PLUGINS; do
        GOSA_PLUGIN_DIRS="$GOSA_PLUGIN_DIRS gosa-plugin-$plugin-${GOSA_VER}"
 done
 for dir in $GOSA_DIR $GOSA_SI_DIR $GOSA_PLUGIN_DIRS; do
        echo "Adapting version in $dir"
-       (cd "$dir"; echo | debchange -v "${GOSA_VER}-${SECTION}1" -D "$TARGET_RELEASE" "$RELEASE_REASON" &> /dev/null)
+       (cd "$dir"; echo | debchange -v "${GOSA_VER}-1${TARGET_RELEASE}1" -D "$TARGET_RELEASE" "$RELEASE_REASON" &> /dev/null)
        [ -d $dir/debian/patches ] || continue
        echo "Creating patch list for $dir"
        ls -1 $dir/debian/patches | grep -v 00list | sed 's%^.*/%%g' > $dir/debian/patches/00list