Commit b7d95341 authored by Allan McRae's avatar Allan McRae
Browse files

Add info page install prototype



With thanks to Xavier Chantry for providing improvements

Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent c2f18aaa
......@@ -37,6 +37,7 @@ install:
install -m 644 prototypes/PKGBUILD-svn.proto $(DESTDIR)$(PROTOTYPEDIR)
install -m 644 prototypes/proto-gnome.install $(DESTDIR)$(PROTOTYPEDIR)
install -m 644 prototypes/proto-haskell.install $(DESTDIR)$(PROTOTYPEDIR)
install -m 644 prototypes/proto-info.install $(DESTDIR)$(PROTOTYPEDIR)
install -m 644 prototypes/rc-script.proto $(DESTDIR)$(PROTOTYPEDIR)
uninstall:
......@@ -53,6 +54,7 @@ uninstall:
rm $(DESTDIR)$(PROTOTYPEDIR)/PKGBUILD-svn.proto
rm $(DESTDIR)$(PROTOTYPEDIR)/proto-gnome.install
rm $(DESTDIR)$(PROTOTYPEDIR)/proto-haskell.install
rm $(DESTDIR)$(PROTOTYPEDIR)/proto-info.install
rm $(DESTDIR)$(PROTOTYPEDIR)/rc-script.proto
zip:
......
infodir=/usr/share/info
filelist=(foo.info bar)
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment