Ticket #20856: webhttrack-macports-2.diff
File webhttrack-macports-2.diff, 1.3 KB (added by overhacked (Ross Williams), 15 years ago) |
---|
-
src/webhttrack
old new 9 9 # sensible-browser will f up if BROWSER is not set 10 10 SRCHBROWSEREXE="xdg-open sensible-browser ${SRCHBROWSEREXE}" 11 11 fi 12 SRCHPATH="/usr/local/bin /usr/share/bin /usr/bin /usr/lib/httrack /usr/local/lib/httrack /usr/local/share/httrack /sw/bin ${HOME}/usr/bin ${HOME}/bin" 12 if test "`uname -s`" == "Darwin"; then 13 # Darwin/Mac OS X uses a system 'open' command to find 14 # the default browser. The -W flag causes it to wait for 15 # the browser to exit 16 BROWSEREXE="/usr/bin/open -W" 17 fi 18 SRCHPATH="/usr/local/bin /usr/share/bin /usr/bin /usr/lib/httrack /usr/local/lib/httrack /usr/local/share/httrack /opt/local/bin /sw/bin ${HOME}/usr/bin ${HOME}/bin" 13 19 SRCHPATH="$SRCHPATH "`echo $PATH | tr ":" " "` 14 SRCHDISTPATH="/usr/share /usr/local /usr /local /usr/local/share ${HOME}/usr ${HOME}/usr/share /sw ${HOME}/usr/local ${HOME}/usr/share"20 SRCHDISTPATH="/usr/share /usr/local /usr /local /usr/local/share ${HOME}/usr ${HOME}/usr/share /sw /opt/local/share ${HOME}/usr/local ${HOME}/usr/share" 15 21 16 22 ### 17 23 # And now some famous cuisine … … 45 51 user_name=`id -un` 46 52 fi 47 53 if test -n "${user_name}"; then 48 ps -e - -user "$user_name" | grep -qE "(iceape|mozilla|netscape|firebird|firefox)"54 ps -e -U "$user_name" | grep -E "(iceape|mozilla|netscape|firebird|firefox)" | grep -qv "grep -E" 49 55 else 50 56 false 51 57 fi