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  
    99# sensible-browser will f up if BROWSER is not set
    1010SRCHBROWSEREXE="xdg-open sensible-browser ${SRCHBROWSEREXE}"
    1111fi
    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"
     12if 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
     16BROWSEREXE="/usr/bin/open -W"
     17fi
     18SRCHPATH="/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"
    1319SRCHPATH="$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"
     20SRCHDISTPATH="/usr/share /usr/local /usr /local /usr/local/share ${HOME}/usr ${HOME}/usr/share /sw /opt/local/share ${HOME}/usr/local ${HOME}/usr/share"
    1521
    1622###
    1723# And now some famous cuisine
     
    4551user_name=`id -un`
    4652fi
    4753if test -n "${user_name}"; then
    48 ps -e --user "$user_name" | grep -qE "(iceape|mozilla|netscape|firebird|firefox)"
     54ps -e -U "$user_name" | grep -E "(iceape|mozilla|netscape|firebird|firefox)" | grep -qv "grep -E"
    4955else
    5056false
    5157fi