Code

Updated manual page
[gosa.git] / gosa-core / redhat / make-gosa-package
1 #!/bin/sh
3 if [ $# -ne 1 ]; then
4         echo "Usage: make-all trunk"
5         exit 1
6 fi
8 what=$1
9 NOT_RELEASED="heimdal dak dfs glpi opsi apache2 ssh"
11 svn export https://oss.gonicus.de/repositories/gosa/$what/gosa-core
12 svn export https://oss.gonicus.de/repositories/gosa/$what/gosa-plugins
14 VERSION=$(cat gosa-core/debian/changelog | head -n 1 | sed -n -e 's/.*(\([^-]*\).*/\1/p')
16 cp -a gosa-core gosa-$VERSION
17 tar cvfj /usr/src/redhat/SOURCES/gosa-$VERSION.tar.bz2 gosa-$VERSION
18 cp gosa-$VERSION/redhat/0* /usr/src/redhat/SOURCES/
19 sed "s/^Version:.*$/Version:            $VERSION/" gosa-$VERSION/redhat/gosa.spec > /usr/src/redhat/SPECS/gosa.spec
21 rpmbuild -bb /usr/src/redhat/SPECS/gosa.spec
23 MAKE_PLUGINS=$(ls -1 gosa-plugins/*/plugin.dsc | sed 's/^.*\/\([^\/]*\)\/plugin.dsc$/\1/')
24 for i in $NOT_RELEASED; do
25         MAKE_PLUGINS=$(echo -n $MAKE_PLUGINS | sed "s/$i//")
26 done
28 cd gosa-plugins
29 for plugin in $MAKE_PLUGINS; do
30         ../gosa-core/redhat/rpm-make-gosa $plugin
31         rpmbuild -bb /usr/src/redhat/SPECS/gosa-plugin-$plugin.spec
32 done
34 rm -rf gosa-core
35 rm -rf gosa-$VERSION
36 rm -rf gosa-plugins