Code

Updated build script
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Oct 2009 06:55:42 +0000 (06:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Oct 2009 06:55:42 +0000 (06:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14588 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/rpm-make-gosa

index f5899da329330ce2de8416338e99ef31974354ad..5d0a865f67782855364a95f7b8a7507f825d4344 100755 (executable)
@@ -93,11 +93,15 @@ fi
 
 # Move help
 mkdir -p %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@
-mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@
+if [ -d help ]; then
+       mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@
+fi
 
 # Move localization
 mkdir -p %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@
-mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@
+if [ -d locale ]; then
+       mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@
+fi
 
 # Move plugin itself
 mkdir -p %{buildroot}/usr/share/gosa/plugins/@@NAME@@