Add Make target to list all installed packages
[hvlinux.git] / stage4 / hv-install-1
index 721948d..fecfd30 100755 (executable)
@@ -6,6 +6,10 @@ source /etc/profile
 check_for_root_user
 init_log_file
 
+if [ ${#} -eq 1 -a x"${1}" = x"log" ]; then
+    init_installed_packages_log
+fi
+
 VERSIONS_DIR="${SCRDIR}/versions"
 
 export XORG_CONFIG="\
@@ -114,7 +118,9 @@ ipkg -m acnb ${XDG_UTILS} "--mandir=/usr/share/man"
 ipkg -m acnb ${WINDOWMAKER} "--with-gnustepdir=/usr/share/GNUstep"
 ipkg ${WINDOWMAKER_EXTRA}
 
-write_completed_stage
-display_stage_build_stats
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    write_completed_stage
+    display_stage_build_stats
+fi
 
 exit $?