New commits:
commit 544ab7b250579f0f751828a5497a195e4a565fc0
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
common: remove the doc dir if nothing was installed in gather_docs
diff --git a/ChangeLog b/ChangeLog
index c22b040..44bf331 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* libsorcery: modified verify_sources and verify_source, so it prints
the correct error and simplified verify_source
* cast: in cleanup,remove the backup dir if it is empty
+ * common: remove the doc dir if nothing was installed in gather_docs
2008-08-30 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* cast: don't compute SPELLS twice in main
diff --git a/var/lib/sorcery/modules/build_api/common
b/var/lib/sorcery/modules/build_api/common
index 368997b..148dc37 100755
--- a/var/lib/sorcery/modules/build_api/common
+++ b/var/lib/sorcery/modules/build_api/common
@@ -191,6 +191,9 @@ function real_gather_docs() { (
# making installed docs readable for all users.
chmod -fR a+r $DEST_DIR
+ # remove the doc dir if nothing was installed
+ rmdir $DEST_DIR 2> /dev/null
+
fi
) }
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (544ab7b250579f0f751828a5497a195e4a565fc0),
Jaka Kranjc, 09/01/2008