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"