aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
committerkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
commit7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135 (patch)
tree190106e9bf54a571703d713bb45b9e73a9c9d8c7 /cad
parentbefba174ca2c351e960ed7779aef28e6453785ff (diff)
downloadfreebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.gz
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.zst
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.zip
Clean up handling of locale directories at deinstall-time:
* Don't remove "system directories" (which were created by BSD.*.dist) * Silently try to remove locale directories which we might have created
Diffstat (limited to 'cad')
-rw-r--r--cad/geda-gschem/pkg-plist6
-rw-r--r--cad/gschem/pkg-plist6
2 files changed, 12 insertions, 0 deletions
diff --git a/cad/geda-gschem/pkg-plist b/cad/geda-gschem/pkg-plist
index 9c25552e041c..4e4fedeace30 100644
--- a/cad/geda-gschem/pkg-plist
+++ b/cad/geda-gschem/pkg-plist
@@ -33,3 +33,9 @@ share/locale/ru/LC_MESSAGES/geda-gschem.mo
@unexec rmdir %D/share/doc/geda-doc/man 2>/dev/null || true
@unexec rmdir %D/share/gEDA/scheme 2>/dev/null || true
@dirrm share/gEDA/bitmap
+@unexec rmdir %D/share/locale/de_DE/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/de_DE 2> /dev/null || true
+@unexec rmdir %D/share/locale/nl_NL/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/nl_NL 2> /dev/null || true
+@unexec rmdir %D/share/locale/ja_JP/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/ja_JP 2> /dev/null || true
diff --git a/cad/gschem/pkg-plist b/cad/gschem/pkg-plist
index 9c25552e041c..4e4fedeace30 100644
--- a/cad/gschem/pkg-plist
+++ b/cad/gschem/pkg-plist
@@ -33,3 +33,9 @@ share/locale/ru/LC_MESSAGES/geda-gschem.mo
@unexec rmdir %D/share/doc/geda-doc/man 2>/dev/null || true
@unexec rmdir %D/share/gEDA/scheme 2>/dev/null || true
@dirrm share/gEDA/bitmap
+@unexec rmdir %D/share/locale/de_DE/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/de_DE 2> /dev/null || true
+@unexec rmdir %D/share/locale/nl_NL/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/nl_NL 2> /dev/null || true
+@unexec rmdir %D/share/locale/ja_JP/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/ja_JP 2> /dev/null || true