| 1 |
< |
#!/bin/csh -f |
| 1 |
> |
#!/bin/csh -fe |
| 2 |
|
# SCCSid "$SunId$ LBL" |
| 3 |
|
# Install correct version of trad for wish or wish4.0 |
| 4 |
|
# |
| 33 |
|
|
| 34 |
|
sed -e "1s|/usr/local/bin/wish4\.0|$wishcom|" \ |
| 35 |
|
-e "s|^set radlib .*|set radlib $libdir|" trad.wsh > $instdir/trad |
| 36 |
– |
if ($status) exit 1 |
| 36 |
|
chmod 755 $instdir/trad |
| 37 |
+ |
if (! -d $libdir) then |
| 38 |
+ |
mkdir $libdir |
| 39 |
+ |
endif |
| 40 |
|
(cd $libdir ; rm -f $TLIBFILES) |
| 41 |
|
cp $TLIBFILES $libdir |
| 42 |
|
if ($?oldwish) then |
| 43 |
|
foreach i ($TDIFFS) |
| 44 |
< |
(cd $libdir ; rm -f $i.tcl) |
| 44 |
> |
rm -f $libdir/$i.tcl |
| 45 |
|
cp ${i}3.6.tcl $libdir/$i.tcl |
| 46 |
|
end |
| 47 |
|
endif |