From: hickert Date: Tue, 17 Feb 2009 06:36:54 +0000 (+0000) Subject: Updated redhat build script X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a12e5c48b72bdc35fd5eea64a23e439b5e3ba12c;p=gosa.git Updated redhat build script git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13427 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/redhat/make-gosa-package b/gosa-core/redhat/make-gosa-package index 34c149a82..d7d4ccb28 100755 --- a/gosa-core/redhat/make-gosa-package +++ b/gosa-core/redhat/make-gosa-package @@ -8,16 +8,32 @@ fi 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/') @@ -31,6 +47,6 @@ for plugin in $MAKE_PLUGINS; do 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