diff options
author | Simon Legner | 2015-06-12 11:26:48 +0200 |
---|---|---|
committer | Simon Legner | 2015-06-12 11:26:48 +0200 |
commit | 46422992f7cc2291ab4af881b29ceca5b0aa3667 (patch) | |
tree | 0bd138eb0ea40d9cc1faf4fef4b3a6595a347d89 /grub.install | |
download | aur-46422992f7cc2291ab4af881b29ceca5b0aa3667.tar.gz |
Initial import
Diffstat (limited to 'grub.install')
-rw-r--r-- | grub.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/grub.install b/grub.install new file mode 100644 index 000000000000..c1f077d59d92 --- /dev/null +++ b/grub.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(grub.info multiboot.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 +} |