blob: 9ba35b43c1239d2ecfcc8de89748a823de2543e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/csh -f
#
# SELF_UPDATE - Update the update scripts.
unalias grep ls
set iraf = $cwd/
source $iraf/unix/hlib/irafuser.csh
chdir $iraf/util
set REPO = `${iraf}/util/pkgrepo`
if ($?IRAFARCH) then
set arch = $IRAFARCH
else
set arch = `${iraf}/unix/hlib/irafarch.csh -actual`
endif
echo -n "Updating utility scripts ...."
# Delete any existing downloads.
if (-e /tmp/util.tgz) then
/bin/rm -f /tmp/util.tgz
endif
# Get the latest script distribution.
./fget -o /tmp/util.tgz ${REPO}/util-universal.tar.gz
# Go to iraf root, unpack and clean up. Using the IRAF root gives us
# the chance to update the toplevel Makefile or other build scripts in
# the system, e.g. in the 'vendor' directory.
(chdir ../ ; tar zxf /tmp/util.tgz ; /bin/rm -f /tmp/util.tgz )
echo "Done"
exit 0
|