Import upstream version 5.05+2018.07.09+git20190522.1.153d38c
Debian Janitor
2 years ago
100 | 100 | To define the package you need to an IRAF logical path to the mscred |
101 | 101 | directory and a "task" declaration. As noted above, this is often done |
102 | 102 | in the $iraf/unix/hlib/extern.pkg file but it can also be done in your |
103 | irafuser.csh file or even interactively. The statements you need are | |
103 | irafuser.sh file or even interactively. The statements you need are | |
104 | 104 | something like: |
105 | 105 | |
106 | 106 | reset mscred = /local/mscred/ |
143 | 143 | |
144 | 144 | If you will be compiling the package, as opposed to installing a binary |
145 | 145 | distribution, then you need to define various environment variables. |
146 | The following is for Unix/csh which is the main supported environment. | |
146 | The following is for Unix which is the main supported environment. | |
147 | 147 | |
148 | % setenv iraf /iraf/iraf/ # Path to IRAF root (example) | |
149 | % source $iraf/unix/hlib/irafuser.csh # Define rest of environment | |
150 | % setenv IRAFARCH redhat # IRAF architecture | |
151 | % setenv mscred <path>/ # Path to package | |
148 | % export iraf=/iraf/iraf/ # Path to IRAF root (example) | |
149 | % source $iraf/unix/hlib/irafuser.sh # Define rest of environment | |
150 | % export IRAFARCH=linux64 # IRAF architecture | |
151 | % export mscred=<path>/ # Path to package | |
152 | 152 | |
153 | 153 | where you need to supply the appropriate path to the IRAF installation |
154 | 154 | root in the first step and the IRAF architecture identifier for your |
110 | 110 | To define the package you need to an IRAF logical path to the mscred |
111 | 111 | directory and a "task" declaration. As noted above, this is often |
112 | 112 | done in the $iraf/unix/hlib/extern.pkg file but it can also be done |
113 | in your irafuser.csh file or even interactively. The statements you | |
113 | in your irafuser.sh file or even interactively. The statements you | |
114 | 114 | need are something like: |
115 | 115 | |
116 | 116 | .nf |
158 | 158 | |
159 | 159 | If you will be compiling the package, as opposed to installing a binary |
160 | 160 | distribution, then you need to define various environment variables. |
161 | The following is for Unix/csh which is the main supported environment. | |
162 | ||
163 | .nf | |
164 | % setenv iraf /iraf/iraf/ # Path to IRAF root (example) | |
165 | % source $iraf/unix/hlib/irafuser.csh # Define rest of environment | |
166 | % setenv IRAFARCH redhat # IRAF architecture | |
167 | % setenv mscred <path>/ # Path to package | |
161 | The following is for Unix which is the main supported environment. | |
162 | ||
163 | .nf | |
164 | % export iraf=/iraf/iraf/ # Path to IRAF root (example) | |
165 | % source $iraf/unix/hlib/irafuser.sh # Define rest of environment | |
166 | % export IRAFARCH=redhat # IRAF architecture | |
167 | % export mscred=<path>/ # Path to package | |
168 | 168 | .fi |
169 | 169 | |
170 | 170 | where you need to supply the appropriate path to the IRAF installation root |
42 | 42 | arch: # show current float option |
43 | 43 | showfloat: |
44 | 44 | $verbose off |
45 | !$(hlib)/mkfloat.csh | |
45 | !$(hlib)/mkfloat | |
46 | 46 | ; |
47 | 47 | generic: # generic installation (no bin) |
48 | 48 | $ifnfile (bin.generic) |
50 | 50 | $endif |
51 | 51 | $verbose off |
52 | 52 | $set DIRS = "lib src" |
53 | !$(hlib)/mkfloat.csh generic -d $(DIRS) | |
53 | !$(hlib)/mkfloat generic -d $(DIRS) | |
54 | 54 | ; |
55 | 55 | |
56 | 56 | freebsd: # install FreeBSD binaries |
59 | 59 | $endif |
60 | 60 | $verbose off |
61 | 61 | $set DIRS = "lib src" |
62 | !$(hlib)/mkfloat.csh freebsd -d $(DIRS) | |
62 | !$(hlib)/mkfloat freebsd -d $(DIRS) | |
63 | 63 | ; |
64 | 64 | linux: # install Linux 32-bit binaries |
65 | 65 | $ifnfile (bin.linux) |
67 | 67 | $endif |
68 | 68 | $verbose off |
69 | 69 | $set DIRS = "lib src" |
70 | !$(hlib)/mkfloat.csh linux -d $(DIRS) | |
70 | !$(hlib)/mkfloat linux -d $(DIRS) | |
71 | 71 | ; |
72 | 72 | linux64: # install Linux 64-bit binaries |
73 | 73 | $ifnfile (bin.linux64) |
75 | 75 | $endif |
76 | 76 | $verbose off |
77 | 77 | $set DIRS = "lib src" |
78 | !$(hlib)/mkfloat.csh linux64 -d $(DIRS) | |
78 | !$(hlib)/mkfloat linux64 -d $(DIRS) | |
79 | 79 | ; |
80 | 80 | macosx: # install Mac OS X (PPC) binaries |
81 | 81 | $ifnfile (bin.macosx) |
83 | 83 | $endif |
84 | 84 | $verbose off |
85 | 85 | $set DIRS = "lib src" |
86 | !$(hlib)/mkfloat.csh macosx -d $(DIRS) | |
86 | !$(hlib)/mkfloat macosx -d $(DIRS) | |
87 | 87 | ; |
88 | 88 | macintel: # install Mac OS X (Intel) binaries |
89 | 89 | $ifnfile (bin.macintel) |
91 | 91 | $endif |
92 | 92 | $verbose off |
93 | 93 | $set DIRS = "lib src" |
94 | !$(hlib)/mkfloat.csh macintel -d $(DIRS) | |
94 | !$(hlib)/mkfloat macintel -d $(DIRS) | |
95 | 95 | ; |
96 | 96 | cygwin: # install Cygwin binaries |
97 | 97 | $ifnfile (bin.macintel) |
99 | 99 | $endif |
100 | 100 | $verbose off |
101 | 101 | $set DIRS = "lib src" |
102 | !$(hlib)/mkfloat.csh macintel -d $(DIRS) | |
102 | !$(hlib)/mkfloat macintel -d $(DIRS) | |
103 | 103 | ; |
104 | 104 | redhat: # install Redhat Linux binaries |
105 | 105 | $ifnfile (bin.redhat) |
107 | 107 | $endif |
108 | 108 | $verbose off |
109 | 109 | $set DIRS = "lib src" |
110 | !$(hlib)/mkfloat.csh redhat -d $(DIRS) | |
110 | !$(hlib)/mkfloat redhat -d $(DIRS) | |
111 | 111 | ; |
112 | 112 | sparc: # install sparc binaries |
113 | 113 | $ifnfile (bin.sparc) |
115 | 115 | $endif |
116 | 116 | $verbose off |
117 | 117 | $set DIRS = "lib src" |
118 | !$(hlib)/mkfloat.csh sparc -d $(DIRS) | |
118 | !$(hlib)/mkfloat sparc -d $(DIRS) | |
119 | 119 | ; |
120 | 120 | ssun: # install Sun/Solaris binaries |
121 | 121 | $ifnfile (bin.ssun) |
123 | 123 | $endif |
124 | 124 | $verbose off |
125 | 125 | $set DIRS = "lib src" |
126 | !$(hlib)/mkfloat.csh ssun -d $(DIRS) | |
126 | !$(hlib)/mkfloat ssun -d $(DIRS) | |
127 | 127 | ; |
128 | 128 | sunos: # install SunOS (Solaris x86) binaries |
129 | 129 | $ifnfile (bin.sunos) |
131 | 131 | $endif |
132 | 132 | $verbose off |
133 | 133 | $set DIRS = "lib src" |
134 | !$(hlib)/mkfloat.csh sunos -d $(DIRS) | |
134 | !$(hlib)/mkfloat sunos -d $(DIRS) | |
135 | 135 | ; |
136 | 136 | noP2R: |
137 | 137 | !find . -type f -name '*[xh]' -exec grep -q P2R {} \; -exec sed -i -e 's+P2R++g' {} \; |