summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2003-02-12 16:25:44 +0000
committerjoey <joey>2003-02-12 16:25:44 +0000
commit2da6ed90ff536121b387c93385e1cf652f7bd3aa (patch)
tree81bf6cd60fd86a47ad69b5fc046df4577ba85827 /autoscripts
parentdb1642cfc79170f94104cfb5f51e1ee498d49bbe (diff)
downloaddebhelper-2da6ed90ff536121b387c93385e1cf652f7bd3aa.tar.gz
r572: * Added dh_installcatalogs, for sgml (and later xml) catalogs. By
Adam DiCarlo. Closes: #90025
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-sgmlcatalog7
-rw-r--r--autoscripts/postrm-sgmlcatalog3
-rw-r--r--autoscripts/prerm-sgmlcatalog3
3 files changed, 13 insertions, 0 deletions
diff --git a/autoscripts/postinst-sgmlcatalog b/autoscripts/postinst-sgmlcatalog
new file mode 100644
index 00000000..100dee2f
--- /dev/null
+++ b/autoscripts/postinst-sgmlcatalog
@@ -0,0 +1,7 @@
+if [ "$1" = "configure" ]; then
+ rm -f #CENTRALCAT#
+ for ordcat in #ORDCATS#; do
+ update-catalog --quiet --add #CENTRALCAT# ${ordcat}
+ done
+ update-catalog --quiet --add --super #CENTRALCAT#
+fi
diff --git a/autoscripts/postrm-sgmlcatalog b/autoscripts/postrm-sgmlcatalog
new file mode 100644
index 00000000..168a6949
--- /dev/null
+++ b/autoscripts/postrm-sgmlcatalog
@@ -0,0 +1,3 @@
+if [ "$1" = "purge" ]; then
+ rm -f #CENTRALCAT# #CENTRALCAT#.old
+fi
diff --git a/autoscripts/prerm-sgmlcatalog b/autoscripts/prerm-sgmlcatalog
new file mode 100644
index 00000000..cdc96e02
--- /dev/null
+++ b/autoscripts/prerm-sgmlcatalog
@@ -0,0 +1,3 @@
+if [ "$1" = "remove" ]; then
+ update-catalog --quiet --remove --super #CENTRALCAT#
+fi