Browse Source

Remove info dir from package with astronautpkg

master
mid-kid 8 years ago
parent
commit
18fd271bef
  1. 7
      astronaut/astronautpkg

7
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"

Loading…
Cancel
Save