summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b6051a)
raw | patch | inline | side by side (parent: 5b6051a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 Feb 2009 08:02:58 +0000 (08:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 Feb 2009 08:02:58 +0000 (08:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13439 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/redhat/make-gosa-package | patch | blob | history |
index d5acc74ead3030917ff5587c110747d849c91314..5cbca5bc25e4aeb08a4ae81bc799f5fa5ac5132c 100755 (executable)
@@ -47,13 +47,18 @@ VERSION=$(cat rpm_src/gosa-core/debian/changelog | head -n 1 | sed -n -e 's/.*(\
case "$distribution" in
"RHEL" )
+ rm -rf /var/tmp/gosa*
build_path='/usr/src/redhat'
+ target='redhat'
;;
"SLES" )
build_path='/usr/src/packages'
+ target='SLES'
;;
"OpenSuse" )
+ rm -rf /var/tmp/rpm-tmp*
build_path='/usr/src/packages'
+ target='suse'
;;
* )
echo "$distribution is unknown"
# Clean up
##
echo ".. some cleanup in '$build_path'"
-rm -rf /var/tmp/gosa*
rm -rf $build_path/RPMS/noarch/gosa*
rm -rf $build_path/SOURCES/gosa*
rm -rf $build_path/SPECS/gosa*
# Build GOsa RPM
##
echo "Try to build package ... rpmbuild"
-rpmbuild --quiet -bb $build_path/SPECS/gosa.spec
+rpmbuild -bb $build_path/SPECS/gosa.spec
if [ $? != 0 ]
then
echo "Error: Build error"
exit 1
fi
- rpmbuild --quiet -bb $build_path/SPECS/gosa-plugin-$plugin.spec
+ rpmbuild -bb $build_path/SPECS/gosa-plugin-$plugin.spec
if [ $? != 0 ]
then
echo "Error: Build error in $plugin"
exit 1
fi
done
+
+echo ""
+echo ""
+echo ""
+echo "#### Build done "
+
+if [ ! -d "RPMS/$target" ]
+then
+ mkdir -p "RPMS/$target"
+
+ echo "Copying rpms to '$curdir/RPMS/$target'"
+ curdir=`pwd`
+ cp $build_path/RPMS/noarch/gosa* "RPMS/$target"
+fi
+
+
+if [ "$distribution" == "OpenSuse" ]
+then
+ cd "RPMS/$target"
+ curdir=`pwd`
+ echo "Creating repostory in '$curdir'"
+ createrepo .
+fi
+
+
+
+