summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fb07fe)
raw | patch | inline | side by side (parent: 1fb07fe)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Feb 2009 06:36:54 +0000 (06:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Feb 2009 06:36:54 +0000 (06:36 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13427 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/redhat/make-gosa-package | patch | blob | history |
index 34c149a82adc3c6c7e285ce5ab38a4ad1260585f..d7d4ccb280f6fffb9d21da870078981cd1879d9d 100755 (executable)
what=$1
NOT_RELEASED="heimdal dak dfs glpi opsi apache2 ssh"
-svn export https://oss.gonicus.de/repositories/gosa/$what/gosa-core
-svn export https://oss.gonicus.de/repositories/gosa/$what/gosa-plugins
+svn export https://oss.gonicus.de/repositories/gosa/tags/$what/gosa-core
+svn export https://oss.gonicus.de/repositories/gosa/tags/$what/gosa-plugins
VERSION=$(cat gosa-core/debian/changelog | head -n 1 | sed -n -e 's/.*(\([^-]*\).*/\1/p')
+#redhat
+rm -rf /usr/src/redhat/RPMS/noarch/gosa*
+rm -rf /usr/src/redhat/SPECS/gosa.spec
+rm -rf /usr/src/redhat/SOURCES/*
+rm -rf /usr/src/redhat/SPECS/*
+
+#suse
+rm -rf /usr/src/packages/RPMS/noarch/gosa*
+rm -rf /usr/src/packages/SPECS/gosa.spec
+rm -rf /usr/src/packages/SOURCES/*
+rm -rf /usr/src/packages/SPECS/*
+
cp -a gosa-core gosa-$VERSION
-tar cvfj /usr/src/redhat/SOURCES/gosa-$VERSION.tar.bz2 gosa-$VERSION
+tar cfj /usr/src/redhat/SOURCES/gosa-$VERSION.tar.bz2 gosa-$VERSION
cp gosa-$VERSION/redhat/0* /usr/src/redhat/SOURCES/
sed "s/^Version:.*$/Version: $VERSION/" gosa-$VERSION/redhat/gosa.spec > /usr/src/redhat/SPECS/gosa.spec
+#suse fallback
+mkdir -p /usr/src/packages/SOURCES/
+ln -s /usr/src/redhat/SPECS/gosa.spec /usr/src/packages/SOURCES/gosa.spec
+
rpmbuild -bb /usr/src/redhat/SPECS/gosa.spec
MAKE_PLUGINS=$(ls -1 gosa-plugins/*/plugin.dsc | sed 's/^.*\/\([^\/]*\)\/plugin.dsc$/\1/')
rpmbuild -bb /usr/src/redhat/SPECS/gosa-plugin-$plugin.spec
done
-rm -rf gosa-core
+#rm -rf gosa-core
rm -rf gosa-$VERSION
rm -rf gosa-plugins