Ticket #27361: patch-src-webhttrack.diff

File patch-src-webhttrack.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)
  • src/webhttrack

    old new  
    1616# the browser to exit
    1717BROWSEREXE="/usr/bin/open -W"
    1818fi
    19 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"
     19SRCHPATH="@PREFIX@/bin"
    2020SRCHPATH="$SRCHPATH "`echo $PATH | tr ":" " "`
    21 SRCHDISTPATH="/usr/share /usr/local /usr /local /usr/local/share ${HOME}/usr ${HOME}/usr/share /opt/local/share /sw ${HOME}/usr/local ${HOME}/usr/share"
     21SRCHDISTPATH="@PREFIX@/share"
    2222
    2323###
    2424# And now some famous cuisine
     
    161161fi
    162162
    163163# Create a temporary filename
    164 TMPSRVFILE="/tmp/.webhttrack.$$.`head -c16 /dev/random | md5sum | cut -f1 -d' '`"
    165 >${TMPSRVFILE} || ! log "cound not create the temporary file ${TMPSRVFILE}" || exit 1
     164TMPSRVFILE="$(mktemp ${TMPDIR:-/tmp}/.webhttrack.XXXXXXXX)" || ! log "cound not create the temporary file ${TMPSRVFILE}" || exit 1
    166165# Launch htsserver binary and setup the server
    167166(${BINPATH}/htsserver "${DISTPATH}/" path "${HOME}/websites" lang "${LANGN}" $@; echo SRVURL=error) > ${TMPSRVFILE}&
    168167# Find the generated SRVURL