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 16 16 # the browser to exit 17 17 BROWSEREXE="/usr/bin/open -W" 18 18 fi 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"19 SRCHPATH="@PREFIX@/bin" 20 20 SRCHPATH="$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"21 SRCHDISTPATH="@PREFIX@/share" 22 22 23 23 ### 24 24 # And now some famous cuisine … … 161 161 fi 162 162 163 163 # 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 164 TMPSRVFILE="$(mktemp ${TMPDIR:-/tmp}/.webhttrack.XXXXXXXX)" || ! log "cound not create the temporary file ${TMPSRVFILE}" || exit 1 166 165 # Launch htsserver binary and setup the server 167 166 (${BINPATH}/htsserver "${DISTPATH}/" path "${HOME}/websites" lang "${LANGN}" $@; echo SRVURL=error) > ${TMPSRVFILE}& 168 167 # Find the generated SRVURL