[38040] trunk/base/portmgr/dmg/postflight
raimue at macports.org
raimue at macports.org
Thu Jul 3 21:59:55 PDT 2008
Revision: 38040
http://trac.macosforge.org/projects/macports/changeset/38040
Author: raimue at macports.org
Date: 2008-07-03 21:59:54 -0700 (Thu, 03 Jul 2008)
Log Message:
-----------
portmgr/dmg/postflight:
Remove old non-compressed man pages on install
Modified Paths:
--------------
trunk/base/portmgr/dmg/postflight
Modified: trunk/base/portmgr/dmg/postflight
===================================================================
--- trunk/base/portmgr/dmg/postflight 2008-07-04 04:48:02 UTC (rev 38039)
+++ trunk/base/portmgr/dmg/postflight 2008-07-04 04:59:54 UTC (rev 38040)
@@ -78,9 +78,23 @@
echo "An appropriate ${1} variable has been added to your shell environment by the MacPorts installer."
}
+function cleanup_man () {
+ # Remove old non-compressed man pages
+ echo -e "\nRemoving old man pages..."
+ MAN1="port.1"
+ MAN5="macports.conf.5"
+ MAN7="portfile.7 portstyle.7 porthier.7 portgroup.7"
+ for m in ${MAN1}; do rm -vf ${MANPAGES}/man1/$m ; done
+ for m in ${MAN5}; do rm -vf ${MANPAGES}/man5/$m ; done
+ for m in ${MAN7}; do rm -vf ${MANPAGES}/man7/$m ; done
+ echo -e "Done.\n"
+}
+
echo "The MacPorts Project, postflight script version ${VERSION}: checking the shell environment for user \"${USER}\"."
+# Remove old stuff
+cleanup_man
# Determine the user's shell, in order to choose an appropriate configuration file we'll be tweaking.
# Exit nicely if the shell is any other than bash or tcsh, as that's considered non-standard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080703/5d45f710/attachment.html
More information about the macports-changes
mailing list