ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/tradinstall.csh
(Generate patch)

Comparing ray/src/util/tradinstall.csh (file contents):
Revision 2.7 by greg, Sat Feb 22 02:07:30 2003 UTC vs.
Revision 2.10 by greg, Wed May 1 16:47:54 2019 UTC

# Line 9 | Line 9 | set TLIBFILES = ( *[a-z].tcl *.hlp trad.icon tclIndex
9  
10   set TDIFFS = (`ls | sed -n 's/3\.6\.tcl$//p'`)
11  
12 < set WISHCOMS = ( wish4.{3,2,1,0} wish8.0 wish )
12 > set WISHCOMS = ( wish4.{3,2,1,0} wish8.{6,5,4,3,2,1,0} wish )
13  
14   foreach w ( $WISHCOMS )
15          foreach d ($path)
# Line 24 | Line 24 | if (! $?wishcom) then
24          echo "Cannot find wish executable in current path -- trad not installed."
25          exit 1
26   endif
27 < # if ( $wishcom:t == wish ) then
28 < #       set wishcom="$wishcom -f"
29 < #       set oldwish
30 < # endif
27 > if ("`file $wishcom`" =~ "*shell script*") then
28 >        set wishcom="/bin/sh"
29 > endif
30  
31   echo "Installing trad using $wishcom"
32  
33 < sed -e "1s|/usr/local/bin/wish4\.0|$wishcom|" \
33 > sed -e "1s|/usr/bin/wish|$wishcom|" \
34          -e "s|^set radlib .*|set radlib $libdir|" trad.wsh > $instdir/trad
35   chmod 755 $instdir/trad
36   if (! -d $libdir) then
# Line 39 | Line 38 | if (! -d $libdir) then
38   endif
39   (cd $libdir ; rm -f $TLIBFILES)
40   cp $TLIBFILES $libdir
42 if ($?oldwish) then
43        foreach i ($TDIFFS)
44                rm -f $libdir/$i.tcl
45                cp ${i}3.6.tcl $libdir/$i.tcl
46        end
47 endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines