summaryrefslogtreecommitdiff
path: root/staging/gcc/gcc-go.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-02 00:01:20 +0000
committerroot <root@rshg054.dnsready.net>2012-07-02 00:01:20 +0000
commit9d209f25af63a35774000e87df4e188057f71b2f (patch)
treede003993674c9d9e51d40ea831588cd516c01a11 /staging/gcc/gcc-go.install
parent55f2d1ab0ab1bd2f7c8c7c5cefeb45f7c457a5d9 (diff)
Mon Jul 2 00:01:20 UTC 2012
Diffstat (limited to 'staging/gcc/gcc-go.install')
-rw-r--r--staging/gcc/gcc-go.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/staging/gcc/gcc-go.install b/staging/gcc/gcc-go.install
new file mode 100644
index 000000000..7dc50dee5
--- /dev/null
+++ b/staging/gcc/gcc-go.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(gccgo.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
+}