index 7bad3a804884c98847e94fd3028b4ad2996adc5c..297eb5920bc2e62a5fd6f753728caa1580c83d72 100755 (executable)
-#!/bin/sh
+#!/bin/bash
# This code is part of GOsa (http://www.gosa-project.org)
# Copyright (C) 2008 GONICUS GmbH
#
GOTO=""
PBUILDER=""
NOT_RELEASED="heimdal dak dfs glpi apache2"
-GOTO_NOT_RELEASED="apache-directory-studio goto-cd libresourcepool-net-ldap-perl-1.002 libresourcepool-perl-1.0104 openproj ptc syslinux konch"
+GOTO_NOT_RELEASED="apache-directory-studio goto-cd libresourcepool-net-ldap-perl-1.002 libresourcepool-perl-1.0104 openproj ptc syslinux konch ldm openssh-4.3p2"
DEBIAN_PKG="remove"
NO_SVN="use"
EXTRACT=`pwd`
BRANCH_REV=$(LANG=C svn info gosa-info | sed -n -e 's/^Last Changed Rev: \([0-9]*\).*$/\1/p')
rm -rf gosa-info
- echo "Loading svn information for goto '${BRANCH}'..."
- svn co -N https://oss.gonicus.de/repositories/goto/${BRANCH} goto-info/ > /dev/null
- GOTO_BRANCH_REV=$(LANG=C svn info goto-info | sed -n -e 's/^Last Changed Rev: \([0-9]*\).*$/\1/p')
- rm -rf goto-info
-
+ if [ "$GOTO" = "use" ]
+ then
+ echo "Loading svn information for goto '${BRANCH}'..."
+ svn co -N https://oss.gonicus.de/repositories/goto/${BRANCH} goto-info/ > /dev/null
+ GOTO_BRANCH_REV=$(LANG=C svn info goto-info | sed -n -e 's/^Last Changed Rev: \([0-9]*\).*$/\1/p')
+ rm -rf goto-info
+ fi
else
echo "Loading svn information for gosa '${BRANCH}' from local checkout ..."
BRANCH_REV=$(LANG=C svn info $EXTRACT/gosa-core | sed -n -e 's/^Last Changed Rev: \([0-9]*\).*$/\1/p')
| head -n 1 | sed -n -e 's/.*(\([^-]*\).*/\1/p')
if [ "$BRANCH" == "trunk" ]; then
GOSA_VER="${VERSION}+svn${BRANCH_REV}"
+
+ if [ "$GOTO" = "use" ]
+ then
+ GOTO_VER="+svn${GOTO_BRANCH_REV}"
+ fi
else
GOSA_VER="${VERSION}"
+
+ if [ "$GOTO" = "use" ]
+ then
+ GOTO_VER=""
+ fi
+
fi
else
done
fi
+if [ "TARGET_RELEASE" == "etch" ]; then
+ NOBREAKS="--no-break"
+fi
+
for plugin in $MAKE_PLUGINS; do
GOSA_PLUG_DIR="gosa-plugin-$plugin-${GOSA_VER}"
mv "gosa-plugins-${BNAME}/$plugin" .
echo "Debianizing plugin $plugin"
- yes | dh-make-gosa --section $SECTION $plugin
+ yes | dh-make-gosa $NOBREAKS --section $SECTION $plugin
rm -rf "$plugin"
echo "Packing original sources 'gosa-plugin-$plugin-${GOSA_VER}'..."
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"
+ if [ "$GOTO_VER" = "" ]
+ then
+ tar -c --exclude "$goto/debian" -f "${goto}_${GOTO_VERSION}.orig.tar" $goto
+ echo "Compressing sources..."
+ gzip -f -9 "${goto}_${GOTO_VERSION}.orig.tar"
+ else
+ tar -c --exclude "$goto/debian" -f "${goto}_${GOTO_VERSION}${GOTO_VER}.orig.tar" $goto
+
+ echo "Compressing svn sources..."
+ gzip -f -9 "${goto}_${GOTO_VERSION}${GOTO_VER}.orig.tar"
+
+ echo "Adapting version in $goto"
+ (cd "$goto"; echo | debchange -v "${GOTO_VERSION}${GOTO_VER}-1${TARGET_RELEASE}1" -D "$TARGET_RELEASE" "$RELEASE_REASON")
+ fi
done