This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkpkg
137 lines (114 loc) · 3.35 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# 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) !(clear;date) $endif
$echo "==================== MAKE IRAF! ========================="
$echo "+"
$call syslibs
$call mathlibs
$ifeq (USE_SHLIB, yes) $call shlib $endif
# (fall through)
relink:
$call sysexe
$call packages
$ifeq (hostid, unix) !(touch unix/hlib/utime) $endif
$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 "+"
# On the UNIX distribution, the BIN directory is excluded from the
# tar tape in a "you relink" distribution. Lets make sure we have
# the directory before proceeding to relink all the packages.
$ifeq (hostid, unix) !(mkdir $(iraf)bin >& /dev/null) $endif
$call update@pkg
$echo "+" $echo "+"
;
# SUMMARY -- [UNIX] mkpkg summary: output a summary of the spooled mkpkg
# output, omitting most of the mundane chatter. Used to scan large spool
# files for errors.
summary:
$ifeq (HOSTID, unix)
$ifndef (spool)
$set spool = spool
$endif
! grep -v ':$$' $(spool) | grep -v '^xc' | grep -v '^ar'\
| grep -v '^check file'
$else
$echo "mkpkg summary only available on a UNIX system"
$endif
;
# 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
;
# UNIX/IRAF stuff (multiple architecture support).
# ---------------------------------------------------
arch:
showfloat: # show current float option
$verbose off
!$(hlib)/mkfloat.csh
;
generic: # make architecture indep. (no bins)
$verbose off
!$(hlib)/mkfloat.csh generic
!(cd ./unix; setenv MACH generic; sh setarch.sh)
;
linux: # install linux (32-bit) binaries
$verbose off
!$(hlib)/mkfloat.csh linux
!(cd ./unix; setenv MACH linux; sh setarch.sh)
;
linux64: # install linux (64-bit) binaries
$verbose off
!$(hlib)/mkfloat.csh linux64
!(cd ./unix; setenv MACH linux64; sh setarch.sh)
;
macintel: # install MacOS X (x86_64) binaries
$verbose off
!$(hlib)/mkfloat.csh macintel
!(cd ./unix; setenv MACH macintel; sh setarch.sh)
;
macosx: # install MacOS X (Unix 32-bit) binaries
$verbose off
!$(hlib)/mkfloat.csh macosx
!(cd ./unix; setenv MACH macosx; sh setarch.sh)
;