index 6be6af3a6e2f7f2fcc45fa965de067c4e1df645e..a98bdffa2b7d89eccedbc29dd620ecbd5da6c7ed 100755 (executable)
exit 1
}
-if ! which dh-make-gosa &> /dev/null; then
- echo "Error: cannot find dh-make-gosa binary in path!";
- exit 1
-fi
+for cmd in dh-make-gosa debchange dpkg-buildpackage dpkg-source svn; do
+ if ! which $cmd >/dev/null; then
+ echo "Error: cannot find '$cmd' command in path!";
+ exit 1
+ fi
+done
# Import command line parameters
PARMS=`getopt -o brscip:,h --long branch,changelog,plugins,section,si-section,release:,help -n "${0##*/}" -- "$@"`
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}-1${TARGET_RELEASE}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 2>&1)
[ -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