Code

More packaging updates
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 15:07:28 +0000 (15:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 15:07:28 +0000 (15:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13125 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/make-gosa-package

index 5bc5add5dbe3afd0b617d147b485a113475a2de0..34c149a82adc3c6c7e285ce5ab38a4ad1260585f 100755 (executable)
@@ -6,6 +6,7 @@ if [ $# -ne 1 ]; then
 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
@@ -19,8 +20,13 @@ sed "s/^Version:.*$/Version:            $VERSION/" gosa-$VERSION/redhat/gosa.spe
 
 rpmbuild -bb /usr/src/redhat/SPECS/gosa.spec
 
+MAKE_PLUGINS=$(ls -1 gosa-plugins/*/plugin.dsc | sed 's/^.*\/\([^\/]*\)\/plugin.dsc$/\1/')
+for i in $NOT_RELEASED; do
+       MAKE_PLUGINS=$(echo -n $MAKE_PLUGINS | sed "s/$i//")
+done
+
 cd gosa-plugins
-for plugin in *; do
+for plugin in $MAKE_PLUGINS; do
         ../gosa-core/redhat/rpm-make-gosa $plugin
         rpmbuild -bb /usr/src/redhat/SPECS/gosa-plugin-$plugin.spec
 done