-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkpkg
121 lines (105 loc) · 2.64 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
# Make the FITSUTIL external package
#
# Author: N Zarate
#
$ifeq (hostid, unix) !(clear;date) $endif
$call update
$ifeq (hostid, unix) !(date) $endif
$exit
linkonly:
$call src
$ifeq (HOSTID, vms) $purge [...] $endif
$purge mefbin$
;
update:
$call lib
$call src
$ifeq (HOSTID, vms) $purge [...] $endif
$purge mefbin$
;
lib:
$echo "===================== LIB ========================="
$echo ""
$call update@lib
;
src:
$echo "===================== PKG ========================="
$echo ""
$call update@src
;
clean:
$verbose off
$set DIRS = "lib src"
!($(hlib)/mkfloat.csh generic -d $(DIRS) ; rm -rf bin.[gbl]* *spool*)
;
# STRIP -- Strip the FITSUTIL directories of all sources and other files not
# required to run the system, or for user programming.
strip:
!rmfiles -f lib/strip.mef
;
# 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)
! grep -v ':$$' spool | grep -v '^xc' | grep -v '^ar'\
| grep -v '^check file'
$else
$echo "mkpkg summary only available on a UNIX system"
$endif
;
# IRAF multiple architecture support.
# ----------------------------------------
arch: # show current float option
showfloat:
$verbose off
!$(hlib)/mkfloat
;
generic: # generic installation (no bin)
$ifnfile (bin.generic)
!mkdir bin.generic
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat generic -d $(DIRS)
;
linux: # install Slackwkare Linux binaries
$ifnfile (bin.linux)
!mkdir bin.linux
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat linux -d $(DIRS)
;
linux64: # install x86_64 binaries
$ifnfile (bin.linux64)
!mkdir bin.linux64
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat linux64 -d $(DIRS)
;
macosx: # install Mac OS X (Apple) binaries
$ifnfile (bin.macosx)
!mkdir bin.macosx
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat macosx -d $(DIRS)
;
macintel: # install Mac OS X (Intel) binaries
$ifnfile (bin.macintel)
!mkdir bin.macintel
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat macintel -d $(DIRS)
;
macos64: # install Mac OS X alt binaries
$ifnfile (bin.macos64)
!mkdir bin.macos64
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat macos64 -d $(DIRS)
;