-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathmkpkg
75 lines (63 loc) · 1.6 KB
/
mkpkg
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Root MKPKG for IRAF. The bootstrap utilities and libraries in the HOST
# subdirectory must be made before this can be run.
$verbose
$call mkall # make everything
$exit
sysgen:
$call mkall
$call update
;
mkall:
$ifeq (hostid, unix) !(date) $endif
$echo "==================== MAKE IRAF! ========================="
$echo "+"
$call syslibs
$call mathlibs
$ifeq (USE_SHLIB, yes) $call shlib $endif
# (fall through)
relink:
$call sysexe
$call packages
$echo "====================== (done) ==========================="
$ifeq (hostid, unix) !(date) $endif
;
update:
$call sysexe
$call packages
;
syslibs:
$echo "====================== SYSLIBS =========================="
$echo "+"
$call sysgen@sys
$echo "+" $echo "+"
;
sysexe:
$echo "====================== SYSEXE ==========================="
$echo "+" $echo "+"
$call update@sys
$echo "+" $echo "+"
;
mathlibs:
$echo "====================== MATHLIBS ========================="
$echo "+" $echo "+"
$call mathgen@math
$echo "+" $echo "+"
;
packages:
$echo "====================== PACKAGES ========================="
$echo "+" $echo "+"
$call update@pkg
$echo "+" $echo "+"
;
# STRIP -- Strip the system of all sources and other files not required to
# run the system, or for user programming.
strip:
$echo "Ignore any messages about cannot delete a file."
$echo "Be sure to do a `cd noao; mkpkg strip' as well."
$echo "Stripping non-runtime files from IRAF source tree..."
!rmfiles -f $(hlib)strip.iraf
;
# SRCARC -- Make a source archive (TAR format) of the system.
srcarc:
!wtar -of $(?tarfile) README mkpkg lib sys math pkg doc
;