summaryrefslogtreecommitdiff
path: root/testing/gcc/gcc.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-09 23:10:17 +0000
committerroot <root@rshg047.dnsready.net>2011-07-09 23:10:17 +0000
commitd1e588afc2779754c0abd1122ecf4f8e3c863d7a (patch)
treeb9373ca2187d6796b8045bae62418621abf01ff4 /testing/gcc/gcc.install
parentd006db78a1ce530e9df8a65f87bf39e8d6cc88e5 (diff)
Sat Jul 9 23:10:17 UTC 2011
Diffstat (limited to 'testing/gcc/gcc.install')
-rw-r--r--testing/gcc/gcc.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/gcc/gcc.install b/testing/gcc/gcc.install
new file mode 100644
index 000000000..3407a5e1f
--- /dev/null
+++ b/testing/gcc/gcc.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(cpp.info cppinternals.info gcc.info gccinstall.info gccint.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}