From: hickert Date: Tue, 13 Oct 2009 08:35:48 +0000 (+0000) Subject: Updated build script X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e8fb58c286d7a588c8dfea5c4e6712f23ae0e18;p=gosa.git Updated build script git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14589 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/redhat/rpm-make-gosa b/gosa-core/redhat/rpm-make-gosa index 5d0a865f6..35afae34c 100755 --- a/gosa-core/redhat/rpm-make-gosa +++ b/gosa-core/redhat/rpm-make-gosa @@ -81,25 +81,31 @@ mkdir -p %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ echo "%{buildroot} <<---------" -if [ -d html ]; then +if [ -e ./html/* ]; then mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ fi # Move contrib if available mkdir -p %{buildroot}/usr/share/doc/%{name} -if [ -d contrib ]; then +if [ -e ./contrib/* ]; then mv ./contrib %{buildroot}/usr/share/doc/%{name} fi # Move help mkdir -p %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ -if [ -d help ]; then +if [ -e ./help/* ]; then mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ fi +# Copy etc +mkdir -p %{buildroot}/etc/gosa +if [ -e ./etc/* ]; then + mv ./etc/* %{buildroot}/etc/gosa +fi + # Move localization mkdir -p %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ -if [ -d locale ]; then +if [ -e ./locale/* ]; then mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ fi @@ -123,6 +129,7 @@ rm -rf %{buildroot} %attr (-,root,root) /usr/share/gosa/locale/plugins/@@NAME@@ %attr (-,root,root) /usr/share/gosa/html/plugins/@@NAME@@ %attr (-,root,root) /usr/share/doc/%{name} +%attr (-,root,root) /etc/gosa/ EOF # Create eventually missing directories