From: cajus Date: Mon, 1 Dec 2008 13:18:03 +0000 (+0000) Subject: Removed empty directories X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e5dc502755470b1ed9a1209e5f7cb3a8afa803b;p=gosa.git Removed empty directories git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13098 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/contrib/make-gosa-package b/gosa-core/contrib/make-gosa-package index 57dffb850..10ae3736b 100755 --- a/gosa-core/contrib/make-gosa-package +++ b/gosa-core/contrib/make-gosa-package @@ -23,7 +23,7 @@ RELEASE_REASON="GOsa svn snapshot" BRANCH="trunk" SECTION="web" SI_SECTION="utils" -TARGET_RELEASE="etch" +TARGET_RELEASE="lenny" MAKE_PLUGINS="" NOT_RELEASED="heimdal dak dfs glpi opsi apache2 ssh" diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa index 2c6fceb39..5dddf8e44 100755 --- a/gosa-core/dh-make-gosa +++ b/gosa-core/dh-make-gosa @@ -24,6 +24,25 @@ usage() { } +remove_empty_docs() { + for dir in $(find help); do + len=$(echo $dir | wc -c) + echo $len $dir + done | sort -rn | while read dummy dir; do + + if [ -d $dir ]; then + cnt=$(ls -1A $dir | wc -l) + if [ $cnt -eq 0 ]; then + echo "Removing empty $dir" + rm -rf "$dir" + sed -i "/$(echo -n $dir | sed 's/\//\\\//g')/d" debian/install + fi + fi + + done +} + + load_dsc() { if [ -r "$1" ]; then PL_NAME=$(sed -n 's/"//g;s/^name\s*=\s*\(.*\)$/\1/p' "$1") @@ -368,5 +387,8 @@ done # Remove examples rm debian/*ex debian/*EX >/dev/null 2>&1 +# Remove empty docs +remove_empty_docs + echo "Done."