From 18fd271bef2ad7fdf005be3ebc343691105b2053 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 28 Oct 2016 00:05:34 +0200 Subject: [PATCH] Remove info dir from package with astronautpkg --- astronaut/astronautpkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/astronaut/astronautpkg b/astronaut/astronautpkg index 29f271c..c377679 100755 --- a/astronaut/astronautpkg +++ b/astronaut/astronautpkg @@ -23,9 +23,12 @@ _astronaut_nuke_dir_install=true # Gzip man and info pages if [ -d "$dir_install/$dir_prefix/$dir_mandir" ]; then find "$dir_install/$dir_prefix/$dir_mandir" -type f -exec gzip -9 {} \; - for i in $(find "$dir_install/$dir_prefix/$dir_mandir" -type l) ; do ln -s "$(readlink "$i").gz" "$i.gz"; rm "$i"; done + for i in $(find "$dir_install/$dir_prefix/$dir_mandir" -type l); do ln -s "$(readlink "$i").gz" "$i.gz"; rm "$i"; done +fi +if [ -d "$dir_install/$dir_prefix/$dir_infodir" ]; then + rm -f "$dir_install/$dir_prefix/$dir_infodir/dir" + gzip -9 -r "$dir_install/$dir_prefix/$dir_infodir" fi -[ -d "$dir_install/$dir_prefix/$dir_infodir" ] && gzip -9 -r "$dir_install/$dir_prefix/$dir_infodir" # _dir_pkgtools should be set from a configuration file (e.g. ~/.astronaut.conf), and points to wherever you want your packages to be placed. [ "$dir_wrapper_pkgtools" ] && mkdir -p "$dir_wrapper_pkgtools" || dir_wrapper_pkgtools="$_topdir"