Mercurial > trustbridge
diff packaging/linux-installer-uninstall.inc @ 1249:014586ef8a84
(issue68) Package licenses
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 12:43:56 +0200 |
parents | 55c13de88b1e |
children |
line wrap: on
line diff
--- a/packaging/linux-installer-uninstall.inc Thu Sep 25 12:04:54 2014 +0200 +++ b/packaging/linux-installer-uninstall.inc Thu Sep 25 12:43:56 2014 +0200 @@ -134,6 +134,17 @@ done rm_empty_dirs "$deinstdir" + # Licenses + deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge/licenses" + for file in $LICENSENAMES; do + local path="${deinstdir}/$file" + if [ -f "$path" ]; then + getxt "Deleting '%s' ...\n" "$path" + rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path" + fi + done + rm_empty_dirs "$deinstdir" + # The actual html deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge" for file in $HELPNAMES; do