You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/gorilla/files/gorilla-script-destdir.patch

18 lines
503 B

--- gorilla-1.4/gorilla.in 2006-07-14 13:29:33.000000000 -0400
+++ gorilla-1.4/gorilla.in.new 2006-07-14 13:33:01.000000000 -0400
@@ -1,10 +1,13 @@
#! /bin/sh
# the next line restarts using wish \
exec @wish@ "$0" ${1+"$@"}
+
set myName [info script]
+set myGorilla /opt/gorilla-1.4/gorilla.tcl
+
if {![catch {
set linkName [file readlink $myName]
}]} {
set myName $linkName
}
-source [file join [file dirname $myName] gorilla.tcl]
+source [file join [file dirname $myName] $myGorilla]