From 5e8fb58c286d7a588c8dfea5c4e6712f23ae0e18 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Oct 2009 08:35:48 +0000 Subject: [PATCH] Updated build script git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14589 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/redhat/rpm-make-gosa | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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 -- 2.30.2