Changeset 154110
- Timestamp:
- Oct 22, 2016, 1:01:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/portmgr/dmg/postflight.in
r154073 r154110 51 51 TIMESTAMP=$(date +"%Y-%m-%d_at_%H:%M:%S") 52 52 BACKUP_SUFFIX=macports-saved_${TIMESTAMP} 53 OUR_STRING="MacPorts Installer addition on ${TIMESTAMP}" 53 OUR_BASESTRING="MacPorts Installer addition" 54 OUR_STRING="${OUR_BASESTRING} on ${TIMESTAMP}" 54 55 55 56 OLD_MACPORTS_TCL_DIR=${PREFIX}/share/macports/Tcl … … 91 92 # which hints that we've already tweaked it and therefore already backed it up. 92 93 function write_setting () { 93 if [[ -f "${HOME}/.${CONF_FILE}" ]] && ! grep "${OUR_ STRING}" "${HOME}/.${CONF_FILE}" > /dev/null; then94 if [[ -f "${HOME}/.${CONF_FILE}" ]] && ! grep "${OUR_BASESTRING}" "${HOME}/.${CONF_FILE}" > /dev/null; then 94 95 echo "Backing up your ${HOME}/.${CONF_FILE} shell confguration file as ${HOME}/.${CONF_FILE}.${BACKUP_SUFFIX} before adapting it for MacPorts." 95 96 /bin/cp -fp "${HOME}/.${CONF_FILE}" "${HOME}/.${CONF_FILE}.${BACKUP_SUFFIX}" || {
Note: See TracChangeset
for help on using the changeset viewer.