From 8e75ffef56c581f90dc911ad166dfc5408776374 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 13 Feb 2017 08:51:32 +0100 Subject: Add and update general-preprocessor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gpp/general-preprocessor.install | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gpp/general-preprocessor.install (limited to 'gpp/general-preprocessor.install') diff --git a/gpp/general-preprocessor.install b/gpp/general-preprocessor.install new file mode 100644 index 0000000..3f68be9 --- /dev/null +++ b/gpp/general-preprocessor.install @@ -0,0 +1,20 @@ +_file="general-preprocessor" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + -- cgit v1.2.3-70-g09d2