aboutsummaryrefslogtreecommitdiff
path: root/unix/hlib/util.csh
diff options
context:
space:
mode:
Diffstat (limited to 'unix/hlib/util.csh')
-rw-r--r--unix/hlib/util.csh/.repo_desc27
-rw-r--r--unix/hlib/util.csh/.repo_local200
-rw-r--r--unix/hlib/util.csh/.repo_manifest200
-rw-r--r--unix/hlib/util.csh/.repo_pkgs22
-rw-r--r--unix/hlib/util.csh/.zzsetenv.def1
-rw-r--r--unix/hlib/util.csh/README19
-rwxr-xr-xunix/hlib/util.csh/check_update68
-rwxr-xr-xunix/hlib/util.csh/chk6417
-rwxr-xr-xunix/hlib/util.csh/fget185
-rwxr-xr-xunix/hlib/util.csh/iraf_latest91
-rwxr-xr-xunix/hlib/util.csh/iraf_update100
-rwxr-xr-xunix/hlib/util.csh/mkarch58
-rwxr-xr-xunix/hlib/util.csh/mkbindist80
-rwxr-xr-xunix/hlib/util.csh/mkclean121
-rwxr-xr-xunix/hlib/util.csh/mkdist25
-rwxr-xr-xunix/hlib/util.csh/mkproto114
-rwxr-xr-xunix/hlib/util.csh/mksrc117
-rwxr-xr-xunix/hlib/util.csh/mksysgen50
-rwxr-xr-xunix/hlib/util.csh/mkup30
-rwxr-xr-xunix/hlib/util.csh/mkupx15
-rwxr-xr-xunix/hlib/util.csh/pkgclean89
-rwxr-xr-xunix/hlib/util.csh/pkgdel17
-rwxr-xr-xunix/hlib/util.csh/pkgenv15
-rwxr-xr-xunix/hlib/util.csh/pkgget192
-rwxr-xr-xunix/hlib/util.csh/pkginit43
-rwxr-xr-xunix/hlib/util.csh/pkginst86
-rwxr-xr-xunix/hlib/util.csh/pkgrepo13
-rwxr-xr-xunix/hlib/util.csh/pkgupdate106
-rwxr-xr-xunix/hlib/util.csh/self_update37
29 files changed, 2138 insertions, 0 deletions
diff --git a/unix/hlib/util.csh/.repo_desc b/unix/hlib/util.csh/.repo_desc
new file mode 100644
index 00000000..0658e86d
--- /dev/null
+++ b/unix/hlib/util.csh/.repo_desc
@@ -0,0 +1,27 @@
+#
+# Pkg Deps Description
+
+adccdrom none ADC CD-ROM tools
+cfh12k mscred,fitsutil CFHT 12K reductions
+ctio none CTIO tools
+deitab none DEIMOS tables package
+esowfi mscred,fitsutil ESO WFI reductions
+fitsutil none FITS utilities
+guiapps none Prototype GUI application
+iue none IUE reduction package
+mem0 none Maximum Entropy deconvolution
+mscred fitsutil Mosaic CCD reduction package
+mtools none Jeff Munn's utility package
+nfextern none General IR reductions/NEWFIRM package
+nfdat_ctio nfextern Calibration data for NEWFIRM at CTIO
+optic mscred,fitsutil OPTIC reductions
+rvsao none SAO's RV package
+song none SONG reductions
+sqiid none SQIID reductions
+stecf none ST-ECF v1.5
+steward none Steward Observatory tools
+stsdas tables STSDAS v3.12 - HST reduction tools
+tables none TABLES v3.12 - Tables utilities
+ucsclris none UCSC LRIS mask making
+upsqiid none UPiated SQIID reductions
+xdimsum none IR reductions
diff --git a/unix/hlib/util.csh/.repo_local b/unix/hlib/util.csh/.repo_local
new file mode 100644
index 00000000..d5b230b3
--- /dev/null
+++ b/unix/hlib/util.csh/.repo_local
@@ -0,0 +1,200 @@
+# Arch Pkg Epoch File
+#
+ linux64 adccdrom 1339696737 adccdrom-linux64.tar.gz
+ linux adccdrom 1339696737 adccdrom-linux.tar.gz
+ redhat adccdrom 1339696738 adccdrom-src.tar.gz
+ macintel adccdrom 1339696735 adccdrom-macintel.tar.gz
+ macosx adccdrom 1339696736 adccdrom-macosx.tar.gz
+ ssun adccdrom 1339696738 adccdrom-src.tar.gz
+ sparc adccdrom 1339696738 adccdrom-src.tar.gz
+ freebsd adccdrom 1339696738 adccdrom-src.tar.gz
+ sunos adccdrom 1339696738 adccdrom-src.tar.gz
+ linux64 cfh12k 1332309566 cfh12k-universal.tar.gz
+ linux cfh12k 1332309566 cfh12k-universal.tar.gz
+ redhat cfh12k 1332309566 cfh12k-universal.tar.gz
+ macintel cfh12k 1332309566 cfh12k-universal.tar.gz
+ macosx cfh12k 1332309566 cfh12k-universal.tar.gz
+ ssun cfh12k 1332309566 cfh12k-universal.tar.gz
+ sparc cfh12k 1332309566 cfh12k-universal.tar.gz
+ freebsd cfh12k 1332309566 cfh12k-universal.tar.gz
+ sunos cfh12k 1332309566 cfh12k-universal.tar.gz
+ linux64 ctio 1339696753 ctio-linux64.tar.gz
+ linux ctio 1339696757 ctio-linux.tar.gz
+ redhat ctio 1339696759 ctio-src.tar.gz
+ macintel ctio 1339696741 ctio-macintel.tar.gz
+ macosx ctio 1339696747 ctio-macosx.tar.gz
+ ssun ctio 1339696759 ctio-src.tar.gz
+ sparc ctio 1339696759 ctio-src.tar.gz
+ freebsd ctio 1339696759 ctio-src.tar.gz
+ sunos ctio 1339696759 ctio-src.tar.gz
+ linux64 deitab 1339696765 deitab-linux64.tar.gz
+ linux deitab 1339696767 deitab-linux.tar.gz
+ redhat deitab 1339696768 deitab-src.tar.gz
+ macintel deitab 1339696760 deitab-macintel.tar.gz
+ macosx deitab 1339696762 deitab-macosx.tar.gz
+ ssun deitab 1339696768 deitab-src.tar.gz
+ sparc deitab 1339696768 deitab-src.tar.gz
+ freebsd deitab 1339696768 deitab-src.tar.gz
+ sunos deitab 1339696768 deitab-src.tar.gz
+ linux64 esowfi 1332309566 esowfi-universal.tar.gz
+ linux esowfi 1332309566 esowfi-universal.tar.gz
+ redhat esowfi 1332309566 esowfi-universal.tar.gz
+ macintel esowfi 1332309566 esowfi-universal.tar.gz
+ macosx esowfi 1332309566 esowfi-universal.tar.gz
+ ssun esowfi 1332309566 esowfi-universal.tar.gz
+ sparc esowfi 1332309566 esowfi-universal.tar.gz
+ freebsd esowfi 1332309566 esowfi-universal.tar.gz
+ sunos esowfi 1332309566 esowfi-universal.tar.gz
+ linux64 fitsutil 1339696790 fitsutil-linux64.tar.gz
+ linux fitsutil 1339696797 fitsutil-linux.tar.gz
+ redhat fitsutil 1339696802 fitsutil-src.tar.gz
+ macintel fitsutil 1339696774 fitsutil-macintel.tar.gz
+ macosx fitsutil 1339696782 fitsutil-macosx.tar.gz
+ ssun fitsutil 1339696802 fitsutil-src.tar.gz
+ sparc fitsutil 1339696802 fitsutil-src.tar.gz
+ freebsd fitsutil 1339696802 fitsutil-src.tar.gz
+ sunos fitsutil 1339696802 fitsutil-src.tar.gz
+ linux64 guiapps 1339696827 guiapps-linux64.tar.gz
+ linux guiapps 1339696837 guiapps-linux.tar.gz
+ redhat guiapps 1339696843 guiapps-src.tar.gz
+ macintel guiapps 1339696808 guiapps-macintel.tar.gz
+ macosx guiapps 1339696817 guiapps-macosx.tar.gz
+ ssun guiapps 1339696843 guiapps-src.tar.gz
+ sparc guiapps 1339696843 guiapps-src.tar.gz
+ freebsd guiapps 1339696843 guiapps-src.tar.gz
+ sunos guiapps 1339696843 guiapps-src.tar.gz
+ linux64 mem0 1339696846 mem0-linux64.tar.gz
+ linux mem0 1339696847 mem0-linux.tar.gz
+ redhat mem0 1339696847 mem0-src.tar.gz
+ macintel mem0 1339696844 mem0-macintel.tar.gz
+ macosx mem0 1339696845 mem0-macosx.tar.gz
+ ssun mem0 1339696847 mem0-src.tar.gz
+ sparc mem0 1339696847 mem0-src.tar.gz
+ freebsd mem0 1339696847 mem0-src.tar.gz
+ sunos mem0 1339696847 mem0-src.tar.gz
+ linux64 mscdb 1339696652 mscdb-universal.tar.gz
+ linux mscdb 1339696652 mscdb-universal.tar.gz
+ redhat mscdb 1339696652 mscdb-universal.tar.gz
+ macintel mscdb 1339696652 mscdb-universal.tar.gz
+ macosx mscdb 1339696652 mscdb-universal.tar.gz
+ ssun mscdb 1339696652 mscdb-universal.tar.gz
+ sparc mscdb 1339696652 mscdb-universal.tar.gz
+ freebsd mscdb 1339696652 mscdb-universal.tar.gz
+ sunos mscdb 1339696652 mscdb-universal.tar.gz
+ linux64 mscred 1343187073 mscred-linux64.tar.gz
+ linux mscred 1343187056 mscred-linux.tar.gz
+ redhat mscred 1343187082 mscred-src.tar.gz
+ macintel mscred 1343187018 mscred-macintel.tar.gz
+ macosx mscred 1343187037 mscred-macosx.tar.gz
+ ssun mscred 1343187082 mscred-src.tar.gz
+ sparc mscred 1343187082 mscred-src.tar.gz
+ freebsd mscred 1343187082 mscred-src.tar.gz
+ sunos mscred 1343187082 mscred-src.tar.gz
+ linux64 mtools 1339696859 mtools-linux64.tar.gz
+ linux mtools 1339696862 mtools-linux.tar.gz
+ redhat mtools 1339696863 mtools-src.tar.gz
+ macintel mtools 1339696850 mtools-macintel.tar.gz
+ macosx mtools 1339696855 mtools-macosx.tar.gz
+ ssun mtools 1339696863 mtools-src.tar.gz
+ sparc mtools 1339696863 mtools-src.tar.gz
+ freebsd mtools 1339696863 mtools-src.tar.gz
+ sunos mtools 1339696863 mtools-src.tar.gz
+ linux64 nfextern 1343186860 nfextern-linux64.tar.gz
+ linux nfextern 1343186815 nfextern-linux.tar.gz
+ redhat nfextern 1343187011 nfextern-src.tar.gz
+ macintel nfextern 1343186914 nfextern-macintel.tar.gz
+ macosx nfextern 1343186971 nfextern-macosx.tar.gz
+ ssun nfextern 1332311037 nfextern-ssun.tar.gz
+ sparc nfextern 1343187011 nfextern-src.tar.gz
+ freebsd nfextern 1343187011 nfextern-src.tar.gz
+ sunos nfextern 1343187011 nfextern-src.tar.gz
+ linux64 optic 1332309566 optic-universal.tar.gz
+ linux optic 1332309566 optic-universal.tar.gz
+ redhat optic 1332309566 optic-universal.tar.gz
+ macintel optic 1332309566 optic-universal.tar.gz
+ macosx optic 1332309566 optic-universal.tar.gz
+ ssun optic 1332309566 optic-universal.tar.gz
+ sparc optic 1332309566 optic-universal.tar.gz
+ freebsd optic 1332309566 optic-universal.tar.gz
+ sunos optic 1332309566 optic-universal.tar.gz
+ linux64 patch 1337903759 patch-src.tar.gz
+ linux patch 1337903759 patch-src.tar.gz
+ redhat patch 1337903759 patch-src.tar.gz
+ macintel patch 1337903759 patch-src.tar.gz
+ macosx patch 1337903759 patch-src.tar.gz
+ ssun patch 1337903759 patch-src.tar.gz
+ sparc patch 1337903759 patch-src.tar.gz
+ freebsd patch 1337903759 patch-src.tar.gz
+ sunos patch 1337903759 patch-src.tar.gz
+ linux64 rvsao 1322067222 rvsao-redhat.tar.gz
+ linux rvsao 1322067222 rvsao-redhat.tar.gz
+ redhat rvsao 1322067222 rvsao-redhat.tar.gz
+ macintel rvsao 1322067226 rvsao-macosx.tar.gz
+ macosx rvsao 1322067226 rvsao-macosx.tar.gz
+ ssun rvsao 1322067223 rvsao-ssun.tar.gz
+ sparc rvsao 1322067228 rvsao-src.tar.gz
+ freebsd rvsao 1322067228 rvsao-src.tar.gz
+ sunos rvsao 1322067228 rvsao-src.tar.gz
+ linux64 song 1332309566 song-universal.tar.gz
+ linux song 1332309566 song-universal.tar.gz
+ redhat song 1332309566 song-universal.tar.gz
+ macintel song 1332309566 song-universal.tar.gz
+ macosx song 1332309566 song-universal.tar.gz
+ ssun song 1332309566 song-universal.tar.gz
+ sparc song 1332309566 song-universal.tar.gz
+ freebsd song 1332309566 song-universal.tar.gz
+ sunos song 1332309566 song-universal.tar.gz
+ linux64 sqiid 1332309566 sqiid-universal.tar.gz
+ linux sqiid 1332309566 sqiid-universal.tar.gz
+ redhat sqiid 1332309566 sqiid-universal.tar.gz
+ macintel sqiid 1332309566 sqiid-universal.tar.gz
+ macosx sqiid 1332309566 sqiid-universal.tar.gz
+ ssun sqiid 1332309566 sqiid-universal.tar.gz
+ sparc sqiid 1332309566 sqiid-universal.tar.gz
+ freebsd sqiid 1332309566 sqiid-universal.tar.gz
+ sunos sqiid 1332309566 sqiid-universal.tar.gz
+ linux64 stsdas 1316518910 stsdas-linux.tar.gz
+ linux stsdas 1316518910 stsdas-linux.tar.gz
+ redhat stsdas 1316518961 stsdas-src.tar.gz
+ macintel stsdas 1316518808 stsdas-macosx.tar.gz
+ macosx stsdas 1316518808 stsdas-macosx.tar.gz
+ ssun stsdas 1316518961 stsdas-src.tar.gz
+ sparc stsdas 1316518961 stsdas-src.tar.gz
+ freebsd stsdas 1316518961 stsdas-src.tar.gz
+ sunos stsdas 1316518961 stsdas-src.tar.gz
+ linux64 tables 1316518978 tables-linux.tar.gz
+ linux tables 1316518978 tables-linux.tar.gz
+ redhat tables 1316518984 tables-src.tar.gz
+ macintel tables 1316518971 tables-macosx.tar.gz
+ macosx tables 1316518971 tables-macosx.tar.gz
+ ssun tables 1316518984 tables-src.tar.gz
+ sparc tables 1316518984 tables-src.tar.gz
+ freebsd tables 1316518984 tables-src.tar.gz
+ sunos tables 1316518984 tables-src.tar.gz
+ linux64 ucsclris 1339696867 ucsclris-linux64.tar.gz
+ linux ucsclris 1339696867 ucsclris-linux.tar.gz
+ redhat ucsclris 1339696868 ucsclris-src.tar.gz
+ macintel ucsclris 1339696864 ucsclris-macintel.tar.gz
+ macosx ucsclris 1339696865 ucsclris-macosx.tar.gz
+ ssun ucsclris 1339696868 ucsclris-src.tar.gz
+ sparc ucsclris 1339696868 ucsclris-src.tar.gz
+ freebsd ucsclris 1339696868 ucsclris-src.tar.gz
+ sunos ucsclris 1339696868 ucsclris-src.tar.gz
+ linux64 upsqiid 1332309566 upsqiid-universal.tar.gz
+ linux upsqiid 1332309566 upsqiid-universal.tar.gz
+ redhat upsqiid 1332309566 upsqiid-universal.tar.gz
+ macintel upsqiid 1332309566 upsqiid-universal.tar.gz
+ macosx upsqiid 1332309566 upsqiid-universal.tar.gz
+ ssun upsqiid 1332309566 upsqiid-universal.tar.gz
+ sparc upsqiid 1332309566 upsqiid-universal.tar.gz
+ freebsd upsqiid 1332309566 upsqiid-universal.tar.gz
+ sunos upsqiid 1332309566 upsqiid-universal.tar.gz
+ linux64 xdimsum 1339696873 xdimsum-linux64.tar.gz
+ linux xdimsum 1339696874 xdimsum-linux.tar.gz
+ redhat xdimsum 1339696874 xdimsum-src.tar.gz
+ macintel xdimsum 1339696869 xdimsum-macintel.tar.gz
+ macosx xdimsum 1339696871 xdimsum-macosx.tar.gz
+ ssun xdimsum 1339696874 xdimsum-src.tar.gz
+ sparc xdimsum 1339696874 xdimsum-src.tar.gz
+ freebsd xdimsum 1339696874 xdimsum-src.tar.gz
+ sunos xdimsum 1339696874 xdimsum-src.tar.gz
diff --git a/unix/hlib/util.csh/.repo_manifest b/unix/hlib/util.csh/.repo_manifest
new file mode 100644
index 00000000..d5b230b3
--- /dev/null
+++ b/unix/hlib/util.csh/.repo_manifest
@@ -0,0 +1,200 @@
+# Arch Pkg Epoch File
+#
+ linux64 adccdrom 1339696737 adccdrom-linux64.tar.gz
+ linux adccdrom 1339696737 adccdrom-linux.tar.gz
+ redhat adccdrom 1339696738 adccdrom-src.tar.gz
+ macintel adccdrom 1339696735 adccdrom-macintel.tar.gz
+ macosx adccdrom 1339696736 adccdrom-macosx.tar.gz
+ ssun adccdrom 1339696738 adccdrom-src.tar.gz
+ sparc adccdrom 1339696738 adccdrom-src.tar.gz
+ freebsd adccdrom 1339696738 adccdrom-src.tar.gz
+ sunos adccdrom 1339696738 adccdrom-src.tar.gz
+ linux64 cfh12k 1332309566 cfh12k-universal.tar.gz
+ linux cfh12k 1332309566 cfh12k-universal.tar.gz
+ redhat cfh12k 1332309566 cfh12k-universal.tar.gz
+ macintel cfh12k 1332309566 cfh12k-universal.tar.gz
+ macosx cfh12k 1332309566 cfh12k-universal.tar.gz
+ ssun cfh12k 1332309566 cfh12k-universal.tar.gz
+ sparc cfh12k 1332309566 cfh12k-universal.tar.gz
+ freebsd cfh12k 1332309566 cfh12k-universal.tar.gz
+ sunos cfh12k 1332309566 cfh12k-universal.tar.gz
+ linux64 ctio 1339696753 ctio-linux64.tar.gz
+ linux ctio 1339696757 ctio-linux.tar.gz
+ redhat ctio 1339696759 ctio-src.tar.gz
+ macintel ctio 1339696741 ctio-macintel.tar.gz
+ macosx ctio 1339696747 ctio-macosx.tar.gz
+ ssun ctio 1339696759 ctio-src.tar.gz
+ sparc ctio 1339696759 ctio-src.tar.gz
+ freebsd ctio 1339696759 ctio-src.tar.gz
+ sunos ctio 1339696759 ctio-src.tar.gz
+ linux64 deitab 1339696765 deitab-linux64.tar.gz
+ linux deitab 1339696767 deitab-linux.tar.gz
+ redhat deitab 1339696768 deitab-src.tar.gz
+ macintel deitab 1339696760 deitab-macintel.tar.gz
+ macosx deitab 1339696762 deitab-macosx.tar.gz
+ ssun deitab 1339696768 deitab-src.tar.gz
+ sparc deitab 1339696768 deitab-src.tar.gz
+ freebsd deitab 1339696768 deitab-src.tar.gz
+ sunos deitab 1339696768 deitab-src.tar.gz
+ linux64 esowfi 1332309566 esowfi-universal.tar.gz
+ linux esowfi 1332309566 esowfi-universal.tar.gz
+ redhat esowfi 1332309566 esowfi-universal.tar.gz
+ macintel esowfi 1332309566 esowfi-universal.tar.gz
+ macosx esowfi 1332309566 esowfi-universal.tar.gz
+ ssun esowfi 1332309566 esowfi-universal.tar.gz
+ sparc esowfi 1332309566 esowfi-universal.tar.gz
+ freebsd esowfi 1332309566 esowfi-universal.tar.gz
+ sunos esowfi 1332309566 esowfi-universal.tar.gz
+ linux64 fitsutil 1339696790 fitsutil-linux64.tar.gz
+ linux fitsutil 1339696797 fitsutil-linux.tar.gz
+ redhat fitsutil 1339696802 fitsutil-src.tar.gz
+ macintel fitsutil 1339696774 fitsutil-macintel.tar.gz
+ macosx fitsutil 1339696782 fitsutil-macosx.tar.gz
+ ssun fitsutil 1339696802 fitsutil-src.tar.gz
+ sparc fitsutil 1339696802 fitsutil-src.tar.gz
+ freebsd fitsutil 1339696802 fitsutil-src.tar.gz
+ sunos fitsutil 1339696802 fitsutil-src.tar.gz
+ linux64 guiapps 1339696827 guiapps-linux64.tar.gz
+ linux guiapps 1339696837 guiapps-linux.tar.gz
+ redhat guiapps 1339696843 guiapps-src.tar.gz
+ macintel guiapps 1339696808 guiapps-macintel.tar.gz
+ macosx guiapps 1339696817 guiapps-macosx.tar.gz
+ ssun guiapps 1339696843 guiapps-src.tar.gz
+ sparc guiapps 1339696843 guiapps-src.tar.gz
+ freebsd guiapps 1339696843 guiapps-src.tar.gz
+ sunos guiapps 1339696843 guiapps-src.tar.gz
+ linux64 mem0 1339696846 mem0-linux64.tar.gz
+ linux mem0 1339696847 mem0-linux.tar.gz
+ redhat mem0 1339696847 mem0-src.tar.gz
+ macintel mem0 1339696844 mem0-macintel.tar.gz
+ macosx mem0 1339696845 mem0-macosx.tar.gz
+ ssun mem0 1339696847 mem0-src.tar.gz
+ sparc mem0 1339696847 mem0-src.tar.gz
+ freebsd mem0 1339696847 mem0-src.tar.gz
+ sunos mem0 1339696847 mem0-src.tar.gz
+ linux64 mscdb 1339696652 mscdb-universal.tar.gz
+ linux mscdb 1339696652 mscdb-universal.tar.gz
+ redhat mscdb 1339696652 mscdb-universal.tar.gz
+ macintel mscdb 1339696652 mscdb-universal.tar.gz
+ macosx mscdb 1339696652 mscdb-universal.tar.gz
+ ssun mscdb 1339696652 mscdb-universal.tar.gz
+ sparc mscdb 1339696652 mscdb-universal.tar.gz
+ freebsd mscdb 1339696652 mscdb-universal.tar.gz
+ sunos mscdb 1339696652 mscdb-universal.tar.gz
+ linux64 mscred 1343187073 mscred-linux64.tar.gz
+ linux mscred 1343187056 mscred-linux.tar.gz
+ redhat mscred 1343187082 mscred-src.tar.gz
+ macintel mscred 1343187018 mscred-macintel.tar.gz
+ macosx mscred 1343187037 mscred-macosx.tar.gz
+ ssun mscred 1343187082 mscred-src.tar.gz
+ sparc mscred 1343187082 mscred-src.tar.gz
+ freebsd mscred 1343187082 mscred-src.tar.gz
+ sunos mscred 1343187082 mscred-src.tar.gz
+ linux64 mtools 1339696859 mtools-linux64.tar.gz
+ linux mtools 1339696862 mtools-linux.tar.gz
+ redhat mtools 1339696863 mtools-src.tar.gz
+ macintel mtools 1339696850 mtools-macintel.tar.gz
+ macosx mtools 1339696855 mtools-macosx.tar.gz
+ ssun mtools 1339696863 mtools-src.tar.gz
+ sparc mtools 1339696863 mtools-src.tar.gz
+ freebsd mtools 1339696863 mtools-src.tar.gz
+ sunos mtools 1339696863 mtools-src.tar.gz
+ linux64 nfextern 1343186860 nfextern-linux64.tar.gz
+ linux nfextern 1343186815 nfextern-linux.tar.gz
+ redhat nfextern 1343187011 nfextern-src.tar.gz
+ macintel nfextern 1343186914 nfextern-macintel.tar.gz
+ macosx nfextern 1343186971 nfextern-macosx.tar.gz
+ ssun nfextern 1332311037 nfextern-ssun.tar.gz
+ sparc nfextern 1343187011 nfextern-src.tar.gz
+ freebsd nfextern 1343187011 nfextern-src.tar.gz
+ sunos nfextern 1343187011 nfextern-src.tar.gz
+ linux64 optic 1332309566 optic-universal.tar.gz
+ linux optic 1332309566 optic-universal.tar.gz
+ redhat optic 1332309566 optic-universal.tar.gz
+ macintel optic 1332309566 optic-universal.tar.gz
+ macosx optic 1332309566 optic-universal.tar.gz
+ ssun optic 1332309566 optic-universal.tar.gz
+ sparc optic 1332309566 optic-universal.tar.gz
+ freebsd optic 1332309566 optic-universal.tar.gz
+ sunos optic 1332309566 optic-universal.tar.gz
+ linux64 patch 1337903759 patch-src.tar.gz
+ linux patch 1337903759 patch-src.tar.gz
+ redhat patch 1337903759 patch-src.tar.gz
+ macintel patch 1337903759 patch-src.tar.gz
+ macosx patch 1337903759 patch-src.tar.gz
+ ssun patch 1337903759 patch-src.tar.gz
+ sparc patch 1337903759 patch-src.tar.gz
+ freebsd patch 1337903759 patch-src.tar.gz
+ sunos patch 1337903759 patch-src.tar.gz
+ linux64 rvsao 1322067222 rvsao-redhat.tar.gz
+ linux rvsao 1322067222 rvsao-redhat.tar.gz
+ redhat rvsao 1322067222 rvsao-redhat.tar.gz
+ macintel rvsao 1322067226 rvsao-macosx.tar.gz
+ macosx rvsao 1322067226 rvsao-macosx.tar.gz
+ ssun rvsao 1322067223 rvsao-ssun.tar.gz
+ sparc rvsao 1322067228 rvsao-src.tar.gz
+ freebsd rvsao 1322067228 rvsao-src.tar.gz
+ sunos rvsao 1322067228 rvsao-src.tar.gz
+ linux64 song 1332309566 song-universal.tar.gz
+ linux song 1332309566 song-universal.tar.gz
+ redhat song 1332309566 song-universal.tar.gz
+ macintel song 1332309566 song-universal.tar.gz
+ macosx song 1332309566 song-universal.tar.gz
+ ssun song 1332309566 song-universal.tar.gz
+ sparc song 1332309566 song-universal.tar.gz
+ freebsd song 1332309566 song-universal.tar.gz
+ sunos song 1332309566 song-universal.tar.gz
+ linux64 sqiid 1332309566 sqiid-universal.tar.gz
+ linux sqiid 1332309566 sqiid-universal.tar.gz
+ redhat sqiid 1332309566 sqiid-universal.tar.gz
+ macintel sqiid 1332309566 sqiid-universal.tar.gz
+ macosx sqiid 1332309566 sqiid-universal.tar.gz
+ ssun sqiid 1332309566 sqiid-universal.tar.gz
+ sparc sqiid 1332309566 sqiid-universal.tar.gz
+ freebsd sqiid 1332309566 sqiid-universal.tar.gz
+ sunos sqiid 1332309566 sqiid-universal.tar.gz
+ linux64 stsdas 1316518910 stsdas-linux.tar.gz
+ linux stsdas 1316518910 stsdas-linux.tar.gz
+ redhat stsdas 1316518961 stsdas-src.tar.gz
+ macintel stsdas 1316518808 stsdas-macosx.tar.gz
+ macosx stsdas 1316518808 stsdas-macosx.tar.gz
+ ssun stsdas 1316518961 stsdas-src.tar.gz
+ sparc stsdas 1316518961 stsdas-src.tar.gz
+ freebsd stsdas 1316518961 stsdas-src.tar.gz
+ sunos stsdas 1316518961 stsdas-src.tar.gz
+ linux64 tables 1316518978 tables-linux.tar.gz
+ linux tables 1316518978 tables-linux.tar.gz
+ redhat tables 1316518984 tables-src.tar.gz
+ macintel tables 1316518971 tables-macosx.tar.gz
+ macosx tables 1316518971 tables-macosx.tar.gz
+ ssun tables 1316518984 tables-src.tar.gz
+ sparc tables 1316518984 tables-src.tar.gz
+ freebsd tables 1316518984 tables-src.tar.gz
+ sunos tables 1316518984 tables-src.tar.gz
+ linux64 ucsclris 1339696867 ucsclris-linux64.tar.gz
+ linux ucsclris 1339696867 ucsclris-linux.tar.gz
+ redhat ucsclris 1339696868 ucsclris-src.tar.gz
+ macintel ucsclris 1339696864 ucsclris-macintel.tar.gz
+ macosx ucsclris 1339696865 ucsclris-macosx.tar.gz
+ ssun ucsclris 1339696868 ucsclris-src.tar.gz
+ sparc ucsclris 1339696868 ucsclris-src.tar.gz
+ freebsd ucsclris 1339696868 ucsclris-src.tar.gz
+ sunos ucsclris 1339696868 ucsclris-src.tar.gz
+ linux64 upsqiid 1332309566 upsqiid-universal.tar.gz
+ linux upsqiid 1332309566 upsqiid-universal.tar.gz
+ redhat upsqiid 1332309566 upsqiid-universal.tar.gz
+ macintel upsqiid 1332309566 upsqiid-universal.tar.gz
+ macosx upsqiid 1332309566 upsqiid-universal.tar.gz
+ ssun upsqiid 1332309566 upsqiid-universal.tar.gz
+ sparc upsqiid 1332309566 upsqiid-universal.tar.gz
+ freebsd upsqiid 1332309566 upsqiid-universal.tar.gz
+ sunos upsqiid 1332309566 upsqiid-universal.tar.gz
+ linux64 xdimsum 1339696873 xdimsum-linux64.tar.gz
+ linux xdimsum 1339696874 xdimsum-linux.tar.gz
+ redhat xdimsum 1339696874 xdimsum-src.tar.gz
+ macintel xdimsum 1339696869 xdimsum-macintel.tar.gz
+ macosx xdimsum 1339696871 xdimsum-macosx.tar.gz
+ ssun xdimsum 1339696874 xdimsum-src.tar.gz
+ sparc xdimsum 1339696874 xdimsum-src.tar.gz
+ freebsd xdimsum 1339696874 xdimsum-src.tar.gz
+ sunos xdimsum 1339696874 xdimsum-src.tar.gz
diff --git a/unix/hlib/util.csh/.repo_pkgs b/unix/hlib/util.csh/.repo_pkgs
new file mode 100644
index 00000000..eb7b2181
--- /dev/null
+++ b/unix/hlib/util.csh/.repo_pkgs
@@ -0,0 +1,22 @@
+adccdrom
+cfh12k
+ctio
+deitab
+esowfi
+fitsutil
+guiapps
+mem0
+mscdb
+mscred
+mtools
+nfextern
+optic
+patch
+rvsao
+song
+sqiid
+stsdas
+tables
+ucsclris
+upsqiid
+xdimsum
diff --git a/unix/hlib/util.csh/.zzsetenv.def b/unix/hlib/util.csh/.zzsetenv.def
new file mode 100644
index 00000000..2fa992c0
--- /dev/null
+++ b/unix/hlib/util.csh/.zzsetenv.def
@@ -0,0 +1 @@
+keep
diff --git a/unix/hlib/util.csh/README b/unix/hlib/util.csh/README
new file mode 100644
index 00000000..2a17ea68
--- /dev/null
+++ b/unix/hlib/util.csh/README
@@ -0,0 +1,19 @@
+
+ This directory contains utility scripts used to build and
+maintain the system from the top-level IRAF root directory. These
+scripts should NOT be used to build individual packages or source
+directories.
+
+Contents include:
+
+ README This file
+ chk64 Check subdirectories for 64-bit issues
+ mkarch Reconfigure the system for given architecture
+ mkclean Clean the current architecture of binaries
+ mkdist Create a distribution file (NYI)
+ mkproto Create system prototype files
+ mksrc Clean the system of all binaries
+ mksysgen Build from a clean system source
+ mkup Update current-arch binaries
+ mkupx Update current-arch binaries (debug)
+
diff --git a/unix/hlib/util.csh/check_update b/unix/hlib/util.csh/check_update
new file mode 100755
index 00000000..a26298e9
--- /dev/null
+++ b/unix/hlib/util.csh/check_update
@@ -0,0 +1,68 @@
+#!/bin/csh -f
+#
+# CHECK_UPDATE -- Check to see if an update is available. Return $status=1
+# if a patch is available.
+#
+
+# Called from Makefile, set iraf root.
+source $iraf/unix/hlib/irafuser.csh
+
+
+set REPO = `${iraf}/util/pkgrepo`
+if ($?IRAFARCH) then
+ set arch = $IRAFARCH
+else
+ set arch = `${iraf}/unix/hlib/irafarch.csh -actual`
+endif
+
+
+# Check to see if a patch file is available.
+
+/bin/rm -f /tmp/_rdate /tmp/_pdate
+
+set FGET = "${iraf}/util/fget"
+${FGET} -q -o /tmp/_rdate http://iraf.noao.edu/ftp/v216/PCIX/.release_date
+${FGET} -q -o /tmp/_pdate http://iraf.noao.edu/ftp/v216/PCIX/.patch_release
+
+if (-e /tmp/_rdate) then
+ set rdate = `cat /tmp/_rdate`
+else
+ echo "cannot get rdate"
+ exit 0
+endif
+if (-e /tmp/_pdate) then
+ set pdate = `cat /tmp/_pdate`
+else
+ echo "cannot get pdate"
+ exit 0
+endif
+
+
+if (-e ${iraf}/.patch_release) then
+ set ipdate = `/bin/ls -l --time-style=+%s ${iraf}/.patch_release | \
+ awk '{ print ($6) }'`
+else
+ set ipdate = 0
+endif
+
+if ($#argv > 0 && "$1" == "-d") then # Debug
+ echo " rdate = " $rdate
+ echo " pdate = " $pdate
+ echo "ipdate = " $ipdate
+endif
+
+if ($rdate > $pdate) then # New Release
+ exit 1
+endif
+
+
+if ($pdate == 0) then
+ exit 0
+
+else if ($pdate > $ipdate && $ipdate != 0) then # Patch newer than installed
+ exit 1
+
+endif
+
+
+exit 0 # No update available
diff --git a/unix/hlib/util.csh/chk64 b/unix/hlib/util.csh/chk64
new file mode 100755
index 00000000..3ebe24bc
--- /dev/null
+++ b/unix/hlib/util.csh/chk64
@@ -0,0 +1,17 @@
+#!/bin/csh -f
+
+find . -type f -name \*.x -exec egrep -H SZ_REAL {} \; >& _real
+find . -type f -name \*.h -exec egrep -H SZ_REAL {} \; >& _realh
+
+find . -type f -name \*.h -exec egrep -H SZ_INT {} \; >& _inth
+find . -type f -name \*.x -exec egrep -H SZ_INT {} \; >& _int
+
+find . -type f -name \*.x -exec egrep -H SZ_STRUCT {} \; >& _sz
+find . -type f -name \*.h -exec egrep -H SZ_STRUCT {} \; >& _szh
+
+find . -type f -name \*.x -exec egrep -H mii_ {} \; >& _mii
+find . -type f -name \*.gx -exec egrep -H SZ_PIXEL {} \; >& _szpix
+
+find . -type f -name \*.x -exec egrep -H sizeof {} \; | \
+ egrep -v -e ":int" >& _sizeof
+find . -type f -name \*.x -exec egrep -H szdtype {} \; >& _szdtype
diff --git a/unix/hlib/util.csh/fget b/unix/hlib/util.csh/fget
new file mode 100755
index 00000000..23af7c6a
--- /dev/null
+++ b/unix/hlib/util.csh/fget
@@ -0,0 +1,185 @@
+#!/bin/csh -f
+#
+# FGET -- Download a URL.
+#
+# Usage: fget [-h] [-n] [-q | -v] url
+#
+# Where -n no-op flag
+# -q suppress output
+# -v verbose output
+# -d set download directory
+# -o set output filename
+# -h this message
+#
+# Example:
+# % fget -q ftp://iraf.noao.edu/iraf/extern/foo-linux.tar.gz
+#
+# ----------------------------------------------------------------------------
+
+
+unset noclobber
+onintr cleanup_
+unalias cd cp cmp echo ln mv rm sed set grep ls chmod chown pwd touch sort which
+unalias ftp wget
+
+setenv path "(../util /sbin /usr/sbin /bin /usr/bin /usr/5bin /usr/ucb /etc /usr/etc $path /usr/local/bin /opt/local/bin /local/bin /home/local/bin)"
+
+# set echo
+
+
+##############################################################################
+# START OF MACHDEP DEFINITIONS.
+##############################################################################
+
+# MACHDEP definitions which may be reset below.
+
+
+# Find the iraf root directory.
+if (! $?iraf) then
+ set iraf = ""
+ foreach f ( ~/.iraf.h ~/.iraf/iraf.h /usr/include/iraf.h)
+ # $iraf is defined, use a well-known path for the system
+ if (-e ${f}) then
+ set i = `egrep IRAF ${f} | egrep \#define | sed -e 's/"//g'`
+ set iraf = $i[3]
+echo $i
+ break
+ endif
+ end
+endif
+if ("$iraf" == "") then
+ if (-e /iraf/iraf) then
+ set iraf = /iraf/iraf/
+ else
+ set iraf = `dirname $0`/../
+ endif
+endif
+
+# Determine platform architecture.
+set arch = `$iraf/unix/hlib/irafarch.csh`
+
+
+##############################################################################
+# END OF MACHDEP DEFINITIONS.
+##############################################################################
+
+#=============================================================================
+# Declarations and initializations.
+#=============================================================================
+
+set exec = yes
+set verb = no
+set url = ""
+set fname = ""
+set ddir = ""
+
+
+# Process cmdline flags.
+while ("$1" != "")
+ switch ("$1")
+ case -n: # no execute
+ set exec = no
+ breaksw
+ case -q: # be quiet
+ set verb = no
+ set quiet = yes
+ breaksw
+ case -v: # be chatty
+ set verb = yes
+ set quiet = no
+ breaksw
+ case -h: # print help summary
+ goto Usage
+ case -d: # set download directory
+ set ddir = $2
+ shift
+ breaksw
+ case -o: # set output file name
+ set fname = $2
+ shift
+ breaksw
+ default:
+ set url = $1
+ break
+ endsw
+
+ if ("$2" == "") then
+ break
+ else
+ shift
+ endif
+end
+
+
+# Error checks.
+if ("$url" == "") then
+ if ("$verb" == "yes") then
+ echo "ERROR: URL not specified"
+ endif
+ exit 1
+endif
+
+# Get the download filename. Delete an existing copy of the file
+if ($fname == "") then
+ set fname = $url:t
+endif
+if (-e "$fname") then
+ /bin/rm -f $fname
+endif
+
+# Ensure URL is an HTTP protocol.
+set prot = `echo $url | cut -c1-3`
+if ("$prot" == "ftp") then
+ set u = `echo $url | sed -e 's;ftp://iraf.noao.edu/iraf;http://iraf.noao.edu/ftp;'`
+ set url = $u
+endif
+
+# Do it.
+if ("$exec" == "yes") then
+ if ("$verb" == "yes") then
+ echo "Downloading "$url" ...."
+ endif
+
+ set args = "url='$url' fname='${ddir}${fname}' cache='/tmp' verbose=no extn='' use_cache=no"
+ if ("$verb" == "no") then
+ $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2 >& /dev/null
+ else
+ $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2
+ endif
+
+ if ("$verb" == "yes") then
+ echo "done"
+ endif
+endif
+
+
+# Verify we have the file.
+if (! -e $url:t) then
+ if ("$verb" == "yes") then
+ echo "Error downloading file '"$fname"'"
+ endif
+ exit 1
+else
+ if ($#argv > 1) then
+ mv $url:t $2
+ endif
+endif
+
+# Normal exit.
+exit 0
+
+
+
+#=============================================================================
+# Usage
+#=============================================================================
+
+Usage:
+ echo "Usage: fget [-h] [-n] [-q | -v] url"
+ echo ""
+ echo " where -n # no execute"
+ echo " -q # suppress output"
+ echo " -v # verbose output"
+ echo " -h # this message"
+
+exit 0
diff --git a/unix/hlib/util.csh/iraf_latest b/unix/hlib/util.csh/iraf_latest
new file mode 100755
index 00000000..dfde7893
--- /dev/null
+++ b/unix/hlib/util.csh/iraf_latest
@@ -0,0 +1,91 @@
+#!/bin/csh -f
+#
+# IRAF_LATEST - Update the system with the latest distribution files.
+
+unalias grep ls
+
+set opt = "all"
+
+
+if ($#argv < 1) then
+ echo "Usage: iraf_latest <opt>"
+ exit 0
+else
+ set opt = $1
+endif
+
+
+# Called from Makefile, set iraf root.
+set iraf = $cwd/
+source $iraf/unix/hlib/irafuser.csh
+
+
+set REPO = `${iraf}/util/pkgrepo`
+if ($?IRAFARCH) then
+ set arch = $IRAFARCH
+else
+ set arch = `${iraf}/unix/hlib/irafarch.csh -actual`
+endif
+
+
+echo "iraf_latest: cwd = " $cwd
+
+# Figure out which binaries are required.
+set files = "patch-src.tar.gz" # always need the source ....
+set bins = ""
+foreach b (linux linux64 macosx macintel)
+ if (-e "bin.$b/x_images.e") then
+ set bins = `echo $bins " " $b`
+ switch ($b)
+ case linux:
+ set files = `echo "$files patch.lnux.x86.tar.gz"`
+ breaksw
+ case linux64:
+ set files = `echo "$files patch.lnux.x86_64.tar.gz"`
+ breaksw
+ case macosx:
+ set files = `echo "$files patch.macx.uni.tar.gz"`
+ breaksw
+ case macintel:
+ set files = `echo "$files patch.macx.x86_64.tar.gz"`
+ breaksw
+ endsw
+ endif
+end
+echo "Updating binaries: " $bins
+
+
+# Download the needed files to /tmp
+
+set FGET = "${iraf}/util/fget"
+set REPO = `util/pkgrepo`
+foreach f ($files)
+ echo -n "Downloading: $f"
+ ${FGET} -q -d /tmp/ $REPO/$f
+ if (! (-e /tmp/$f)) then
+ echo ""
+ echo "Error downloading $REPO/$f, quitting"
+ exit
+ endif
+
+ echo -n " Unpacking ..."
+ tar zxf /tmp/$f
+ /bin/rm -f /tmp/$f
+
+ echo " Done."
+end
+
+
+# For the initial release, the update procedures haven't yet been defined.
+# This script will be replaced by the working version at the first release.
+
+
+if ($opt == "all") then # Update everything
+ if (-e extern/.installed) then
+ echo "Update all external packages ..."
+ (chdir extern ; make update)
+ endif
+endif
+
+echo ""
+exit 0
diff --git a/unix/hlib/util.csh/iraf_update b/unix/hlib/util.csh/iraf_update
new file mode 100755
index 00000000..f43ede90
--- /dev/null
+++ b/unix/hlib/util.csh/iraf_update
@@ -0,0 +1,100 @@
+#!/bin/csh -f
+#
+# IRAF_UPDATE - Update the core IRAF system with a cumulative patch.
+
+unalias grep ls
+
+set opt = "all"
+set all = yes
+set src_only = no
+set list_only = no
+set core_only = no
+set noao_only = no
+set vo_only = no
+
+if ($#argv < 1) then
+ set opt = "all"
+ set all = yes
+else
+
+ # Process cmdline flags.
+ while ("$1" != "")
+ switch ("$1")
+ case -all: # clean all package sources
+ set all = yes
+ set opt = "all"
+ breaksw
+ case -src: # update only source code
+ set src_only = yes
+ set opt = "src"
+ breaksw
+ case -list: # list files needing updating
+ set list_only = yes
+ set opt = "list"
+
+ echo ""
+ util/check_update
+ if ($status == 0) then
+ echo "IRAF is up to date"
+ else
+ echo "An IRAF update is available"
+ endif
+ echo ""
+ (chdir util ; ${iraf}/util/pkgupdate -list)
+ exit 0
+
+ case -core: # update only core system
+ set core_only = yes
+ set opt = "core"
+ breaksw
+ case -noao: # update only NOAO package
+ set noao_only = yes
+ set opt = "noao"
+ breaksw
+ case -vo: # update only VO package
+ set vo_only = yes
+ set opt = "vo"
+ breaksw
+ default:
+ echo "Error: Unknown option '"$1"', quitting."
+ exit 1
+ endsw
+
+ shift
+ end
+endif
+
+
+# Called from Makefile, set iraf root.
+set iraf = $cwd/
+source $iraf/unix/hlib/irafuser.csh
+set irafdir = $iraf
+
+
+set REPO = `${irafdir}/util/pkgrepo`
+if ($?IRAFARCH) then
+ set arch = $IRAFARCH
+else
+ set arch = `${irafdir}/unix/hlib/irafarch.csh -actual`
+endif
+
+
+# Init the build scripts as the first update.
+#echo "Updating build scripts ...."
+util/self_update
+
+
+# Execute the update.
+echo "Updating IRAF system ...."
+util/iraf_latest $opt
+
+if ($status == 2) then
+ echo -n "Update Status: No updates necessary"
+else if ($status == 0) then
+ echo -n "Update Status: Successful "
+else
+ echo -n "Update Status: Fails "
+endif
+echo ""
+
+exit 0
diff --git a/unix/hlib/util.csh/mkarch b/unix/hlib/util.csh/mkarch
new file mode 100755
index 00000000..ceec0db8
--- /dev/null
+++ b/unix/hlib/util.csh/mkarch
@@ -0,0 +1,58 @@
+#!/bin/csh -f
+#
+# MKARCH - Reset the platform architecture. Assumes source-only tree and
+# that it's safe to just manually change links.
+
+
+set aarch = `unix/hlib/irafarch.csh -actual`
+
+if (-e $iraf/unix/bin.$aarch/mkpkg.e) then
+ # Assume we've got a system with binaries and can use MKPKG.
+ set use_mkpkg = 1
+else
+ if ($?IRAFARCH && -e $iraf/unix/bin.$IRAFARCH/mkpkg.e) then
+ set use_mkpkg = 1
+ else
+ # Change the links manually, but strip all binaries first.
+ set use_mkpkg = 0
+ endif
+endif
+
+
+if ($#argv == 1) then
+ set arch = $1
+
+loop_:
+ echo "Making architecture: "$arch
+
+ if ($use_mkpkg == 1) then
+ mkpkg $arch
+ (chdir noao ; mkpkg -p noao $arch)
+ (chdir vo ; mkpkg -p vo $arch)
+ else
+ $iraf/util/mkclean
+ /bin/rm -rf bin noao/bin unix/bin unix/as vo/bin
+
+ ln -s bin.$arch bin
+ (chdir vo ; ln -s bin.$arch bin)
+ (chdir noao ; ln -s bin.$arch bin)
+ (chdir unix ; ln -s bin.$arch bin)
+ (chdir unix ; ln -s as.$arch as)
+ endif
+
+ if ("$arch" == "macintel" || "$arch" == "linux64") then
+ (chdir unix/hlib ; \
+ rm -f iraf.h mach.h ; \
+ ln -s iraf64.h iraf.h ; \
+ ln -s mach64.h mach.h)
+ else
+ (chdir unix/hlib ; \
+ rm -f iraf.h mach.h ; \
+ ln -s iraf32.h iraf.h ; \
+ ln -s mach32.h mach.h)
+ endif
+
+else
+ set arch = $aarch
+ goto loop_
+endif
diff --git a/unix/hlib/util.csh/mkbindist b/unix/hlib/util.csh/mkbindist
new file mode 100755
index 00000000..acf4a987
--- /dev/null
+++ b/unix/hlib/util.csh/mkbindist
@@ -0,0 +1,80 @@
+#!/bin/csh -f
+
+unset noclobber
+onintr cleanup_
+unalias cd cp cmp echo ln mv rm sed set grep ls chmod chown pwd touch sort which
+
+setenv path "(/sbin /usr/sbin /bin /usr/bin /usr/5bin /usr/ucb /etc /usr/etc $path /usr/local/bin /opt/local/bin /local/bin /home/local/bin /usr/openwin/bin /usr/X11R6/bin /usr/X11/bin)"
+
+# Utility aliases.
+alias PUT "mv -f \!*; chown $user \!$ " # [MACHDEP]
+alias BOLD_ON "(tput bold)"
+alias BOLD_OFF "(tput sgr0)"
+alias SO_ON "(tput smso)"
+alias SO_OFF "(tput sgr0)"
+
+alias DO_OK "(echo -n '[ '; BOLD_ON; echo -n ' OK '; BOLD_OFF; echo ' ]')"
+alias DO_WARN "(echo -n '[ '; BOLD_ON; echo -n 'WARN'; BOLD_OFF; echo ' ]')"
+alias DO_FAIL "(echo -n '[ '; SO_ON; echo -n 'FAIL'; SO_OFF; echo ' ]')"
+
+alias ERRMSG "(echo -n ' ';BOLD_ON;echo -n 'ERROR: ' ;BOLD_OFF; echo \!*)"
+alias WARNING "(echo -n ' ';BOLD_ON;echo -n 'WARNING: ';BOLD_OFF; echo \!*)"
+alias NEWLINE "(echo '')"
+
+
+
+# set echo
+
+if (! $?iraf) then
+ echo ""
+ echo "Error: You must have the iraf env variable defined !"
+ echo ""
+ exit 1
+endif
+
+set exec = yes
+set arch = `$iraf/unix/hlib/irafarch.csh -actual`
+
+
+#=============================================================================
+# Process any command line arguments.
+#=============================================================================
+while ("$1" != "")
+ switch ("$1")
+ case -n: # no execute
+ set exec = no
+ breaksw
+ default:
+ ERRMSG "$0: unknown argument $1"
+ breaksw
+ endsw
+
+ if ("$2" == "") then
+ break
+ else
+ shift
+ endif
+end
+
+
+
+#----------------------------------
+# Determine platform architecture.
+#----------------------------------
+
+set mach = `$iraf/unix/hlib/irafarch.csh -actual`
+set hmach = `$iraf/unix/hlib/irafarch.csh -actual`
+
+echo "mach = " $mach
+echo "hmach = " $hmach
+
+make generic
+
+echo -n "Making $arch binary distribution ...."
+ make generic
+ if ($exec == "yes") then
+ tar czf ../${arch}-bin.tar.gz bin.$arch */bin.$arch extern/*/bin.$arch
+ else
+ echo "tar czf ../${arch}-bin.tar.gz bin.$arch */bin.$arch extern/*/bin.$arch"
+ endif
+echo " Done"
diff --git a/unix/hlib/util.csh/mkclean b/unix/hlib/util.csh/mkclean
new file mode 100755
index 00000000..6b7d3198
--- /dev/null
+++ b/unix/hlib/util.csh/mkclean
@@ -0,0 +1,121 @@
+#!/bin/csh -f
+#
+# MKCLEAN -- Make a pure source tree and configure the links for the
+# current architecture.
+
+
+unset noclobber
+onintr cleanup_
+unalias cd cp cmp echo ln mv rm sed set grep ls chmod chown pwd touch sort which
+
+setenv path "(/sbin /usr/sbin /bin /usr/bin /usr/5bin /usr/ucb /etc /usr/etc $path /usr/local/bin /opt/local/bin /local/bin /home/local/bin /usr/openwin/bin /usr/X11R6/bin /usr/X11/bin)"
+
+# Utility aliases.
+alias PUT "mv -f \!*; chown $user \!$ " # [MACHDEP]
+alias BOLD_ON "(tput bold)"
+alias BOLD_OFF "(tput sgr0)"
+alias SO_ON "(tput smso)"
+alias SO_OFF "(tput sgr0)"
+
+alias DO_OK "(echo -n '[ '; BOLD_ON; echo -n ' OK '; BOLD_OFF; echo ' ]')"
+alias DO_WARN "(echo -n '[ '; BOLD_ON; echo -n 'WARN'; BOLD_OFF; echo ' ]')"
+alias DO_FAIL "(echo -n '[ '; SO_ON; echo -n 'FAIL'; SO_OFF; echo ' ]')"
+
+alias ERRMSG "(echo -n ' ';BOLD_ON;echo -n 'ERROR: ' ;BOLD_OFF; echo \!*)"
+alias WARNING "(echo -n ' ';BOLD_ON;echo -n 'WARNING: ';BOLD_OFF; echo \!*)"
+alias NEWLINE "(echo '')"
+
+
+
+# set echo
+
+if (! $?iraf) then
+ echo ""
+ echo "Error: You must have the iraf env variable defined !"
+ echo ""
+ exit 1
+endif
+
+set exec = yes
+set arch = `$iraf/unix/hlib/irafarch.csh`
+
+
+#=============================================================================
+# Process any command line arguments.
+#=============================================================================
+while ("$1" != "")
+ switch ("$1")
+ case -n: # no execute
+ set exec = no
+ breaksw
+ default:
+ ERRMSG "$0: unknown argument $1"
+ breaksw
+ endsw
+
+ if ("$2" == "") then
+ break
+ else
+ shift
+ endif
+end
+
+
+
+
+
+#----------------------------------
+# Determine platform architecture.
+#----------------------------------
+
+set mach = `$iraf/unix/hlib/irafarch.csh -actual`
+set hmach = `$iraf/unix/hlib/irafarch.csh -actual`
+
+echo "mach = " $mach
+echo "hmach = " $hmach
+
+echo -n "Clean host directories ...."
+ if ($exec == "yes") then
+ /bin/rm -f unix/bin.$arch/[agm-z]*.e unix/bin.$arch/lib[bco]*.a >& /dev/null
+ else
+ /bin/ls -l unix/bin.$arch/[agm-z]*.e unix/bin.$arch/lib[bco]*.a
+ endif
+echo " Done"
+
+
+
+echo -n "Clean src directories ...."
+foreach i (local math pkg sys noao/[adfimnorst]*)
+ if ($exec == "yes") then
+ find $i -type f -name \*.a -exec /bin/rm -f {} \; >& /dev/null
+ find $i -type f -name \*.e -exec /bin/rm -f {} \; >& /dev/null
+ find $i -type f -name \*.o -exec /bin/rm -f {} \; >& /dev/null
+ else
+ find $i -type f -name \*.a -exec /bin/ls -l {} \;
+ find $i -type f -name \*.e -exec /bin/ls -l {} \;
+ find $i -type f -name \*.o -exec /bin/ls -l {} \;
+ endif
+end
+echo " Done"
+
+
+echo -n "Clean '$arch' bin directories ...."
+if ($exec == "yes") then
+ /bin/rm -rf bin.$arch/lib[a-z]*.a >& /dev/null
+ /bin/rm -rf bin.$arch/*.[eoZ] >& /dev/null
+ /bin/rm -rf noao/bin.$arch/*.[aeoZ] >& /dev/null
+else
+ /bin/ls -l bin.$arch/lib[a-z]*.a >& /dev/null
+ /bin/ls -l bin.$arch/*.[aeoZ] >& /dev/null
+ /bin/ls -l noao/bin.$arch/*.[aeoZ] >& /dev/null
+endif
+echo " Done"
+
+
+echo -n "Cleaning spool files ...."
+if ($exec == "yes") then
+ find . -name spool\* -print -exec /bin/rm -f {} \; >& /dev/null
+else
+ find . -name spool\* -print
+endif
+echo " Done"
diff --git a/unix/hlib/util.csh/mkdist b/unix/hlib/util.csh/mkdist
new file mode 100755
index 00000000..2f0711bc
--- /dev/null
+++ b/unix/hlib/util.csh/mkdist
@@ -0,0 +1,25 @@
+#!/bin/csh -f
+
+foreach i (cygwin freebsd linux linux64 macintel macosx sunos)
+ touch bin.$i/IRAF.NET
+ touch noao/bin.$i/IRAF.NET
+end
+
+touch bin.cygwin/IB.CYGW.x86
+touch bin.freebsd/IB.FBSD.x86
+touch bin.linux/IB.LNUX.x86
+touch bin.linux64/IB.LNUX.x86_64
+touch bin.macintel/IB.MACX.x86_64
+touch bin.macosx/IB.MACX.UNI
+touch bin.sunos/IB.SSUN.x86
+touch bin.ipad/IB.IPAD.ARM
+
+touch noao/bin.cygwin/NB.CYGW.x86
+touch noao/bin.freebsd/NB.FBSD.x86
+touch noao/bin.linux/NB.LNUX.x86
+touch noao/bin.linux64/NB.LNUX.x86_64
+touch noao/bin.macintel/NB.MACX.x86_64
+touch noao/bin.macosx/NB.MACX.UNI
+touch noao/bin.sunos/NB.SSUN.x86
+touch noao/bin.ipad/NB.IPAD.ARM
+
diff --git a/unix/hlib/util.csh/mkproto b/unix/hlib/util.csh/mkproto
new file mode 100755
index 00000000..f0fe1dbf
--- /dev/null
+++ b/unix/hlib/util.csh/mkproto
@@ -0,0 +1,114 @@
+#!/bin/csh -f
+#
+# MKPROTO -- Generate the VOS prototype definitions.
+
+unalias chdir ls egrep wc rm
+
+
+set vos_dir = "sys"
+#set math_dir = "math"
+set math_dir = ""
+set xtools_dir = "pkg/xtools"
+set ds_dir = "pkg/images/tv/display pkg/images/tv/wcslab"
+
+#set vosdirs = "$vos_dir $math_dir $ds_dir"
+set vosdirs = "$vos_dir $math_dir $xtools_dir $ds_dir"
+
+set curdir = `echo $cwd`
+set tproto = /tmp/_vosproto.$$
+
+
+foreach d ($vosdirs)
+
+ # Process each of the subdirectories.
+ #
+ foreach sd (`find $d -type d -print`)
+
+ # Skip the IMFORT library and any documentation directories
+ if ($sd:t != "doc" && "`echo $sd | egrep -e imfort`" == "" && \
+ "`echo $sd | egrep -e osb`" == "" && \
+ "`echo $sd | egrep -e memdbg`" == "" && \
+ "`echo $sd | egrep -e nspp`" == "") then
+
+ chdir $sd # go to subdirectory
+
+ set nf = `ls -1 | egrep -e "\.f" | wc -l` # nfiles to process
+ set nx = `ls -1 | egrep -e "\.x" | wc -l` # nfiles to process
+
+ echo "Processing: "$nx" "$nf" "$sd
+ if ($nf > 0 || $nx > 0) then
+
+ # Skip any files beginning with the letters 'zz', e.g. test
+ # files like zzdebug.x
+
+ foreach f ( [a-z][a-y]*.[xf] )
+ if ($f != 'intrp.f' && \
+ $f != 'xtpmmap.x' && \
+ $f != 'ytpmmap.x') then
+ xc -c -/P $f >& /dev/null # make prototype
+ else
+ echo " Skipping " $f
+ endif
+ end
+
+ egrep -h ^extern *.P >> $tproto # save prototypes
+ /bin/rm -f *.[oP] >& /dev/null # clean up
+ endif
+
+ chdir $curdir # back to top
+
+ else
+ echo " Skipping " $sd
+ endif
+ end
+end
+
+# Sort the prototype file, exclude certain symbols which are duplicates
+# in the VOS but harmless because they occur in places that never conflict,
+# e.g. the stdgraph and imd kernels.
+
+cat $tproto | \
+ egrep -v arbpix_ | \
+ egrep -v imdgeg_ | \
+ egrep -v stxset_ | \
+ egrep -v stxpas_ | \
+ egrep -v dgt_ | \
+ egrep -v sgt_ | \
+ egrep -v asider_ | \
+ egrep -v asifit_ | \
+ egrep -v bndsol_ | \
+ egrep -v ffa_ | \
+ egrep -v ffs_ | \
+ egrep -v fft842_ | \
+ egrep -v avdrs_ | \
+ egrep -v asigrl_ | \
+ egrep -v smooth_ | \
+ egrep -v sigl2 | \
+ egrep -v sigm2 | \
+ egrep -v impcom_ | \
+ egrep -v intrp | \
+ egrep -v srch | \
+ egrep -v codim | \
+ egrep -v mrsole | \
+ egrep -v mreval | \
+ egrep -v \ icg | \
+ egrep -v iclisd | \
+ egrep -v gscr | \
+ egrep -v imdcom | \
+ egrep -v getrot | \
+ egrep -v gtplot | \
+ egrep -v xev | \
+ egrep -v ceps | \
+ egrep -v sgt | \
+ egrep -v sgt | \
+ egrep -v U_fp | \
+ sort >$iraf/unix/hlib/libc/vosproto.h
+
+# sigl2* and sigm2* removed because of multiple uses in apps
+# impcom removed because imio$dbc/impcom.x conflicts with plot$t_implot.x
+# use of 'impcom' as a common
+# intrp* removed because it's use is xtools$ was commented out
+# srch* removed because it's use is xtools$ was commented out
+# mrsole/mreval removed because of duplicate use (splot$deblend.x and
+# xtools$numrecipes)
+# icguag removed duplicate use in noao$imred/dtoi
diff --git a/unix/hlib/util.csh/mksrc b/unix/hlib/util.csh/mksrc
new file mode 100755
index 00000000..648b8e7c
--- /dev/null
+++ b/unix/hlib/util.csh/mksrc
@@ -0,0 +1,117 @@
+#!/bin/csh -f
+#
+# MKSRC -- Make a pure source tree and configure the links for the
+# current architecture.
+
+
+unset noclobber
+onintr cleanup_
+unalias cd cp cmp echo ln mv rm sed set grep ls chmod chown pwd touch sort which
+
+setenv path "(/sbin /usr/sbin /bin /usr/bin /usr/5bin /usr/ucb /etc /usr/etc $path /usr/local/bin /opt/local/bin /local/bin /home/local/bin /usr/openwin/bin /usr/X11R6/bin /usr/X11/bin)"
+
+# Utility aliases.
+alias PUT "mv -f \!*; chown $user \!$ " # [MACHDEP]
+alias BOLD_ON "(tput bold)"
+alias BOLD_OFF "(tput sgr0)"
+alias SO_ON "(tput smso)"
+alias SO_OFF "(tput sgr0)"
+
+alias DO_OK "(echo -n '[ '; BOLD_ON; echo -n ' OK '; BOLD_OFF; echo ' ]')"
+alias DO_WARN "(echo -n '[ '; BOLD_ON; echo -n 'WARN'; BOLD_OFF; echo ' ]')"
+alias DO_FAIL "(echo -n '[ '; SO_ON; echo -n 'FAIL'; SO_OFF; echo ' ]')"
+
+alias ERRMSG "(echo -n ' ';BOLD_ON;echo -n 'ERROR: ' ;BOLD_OFF; echo \!*)"
+alias WARNING "(echo -n ' ';BOLD_ON;echo -n 'WARNING: ';BOLD_OFF; echo \!*)"
+alias NEWLINE "(echo '')"
+
+
+
+# set echo
+
+
+if (! $?iraf) then
+ echo ""
+ echo "Error: You must have the iraf env variable defined !"
+ echo ""
+ exit 1
+endif
+
+
+set exec = yes
+set arch = `$iraf/unix/hlib/irafarch.csh`
+
+
+#=============================================================================
+# Process any command line arguments.
+#=============================================================================
+while ("$1" != "")
+ switch ("$1")
+ case -n: # no execute
+ set exec = no
+ breaksw
+ default:
+ ERRMSG "$0: unknown argument $1"
+ breaksw
+ endsw
+
+ if ("$2" == "") then
+ break
+ else
+ shift
+ endif
+end
+
+
+
+
+
+#----------------------------------
+# Determine platform architecture.
+#----------------------------------
+
+echo -n "Clean host directories ...."
+ if ($exec == "yes") then
+ /bin/rm -f unix/bin.*/[agm-z]*.e unix/bin.*/lib[bco]*.a >& /dev/null
+ else
+ /bin/ls -l unix/bin.*/[agm-z]*.e unix/bin.*/lib[bco]*.a
+ endif
+echo " Done"
+
+
+
+echo -n "Clean src directories ...."
+foreach i (local math pkg sys noao)
+ if ($exec == "yes") then
+ find $i -type f -name \*.a -exec /bin/rm -f {} \; >& /dev/null
+ find $i -type f -name \*.e -exec /bin/rm -f {} \; >& /dev/null
+ find $i -type f -name \*.o -exec /bin/rm -f {} \; >& /dev/null
+ find $i -type f -name OBJS\* -exec /bin/ls -l {} \; >& /dev/null
+ else
+ find $i -type f -name \*.a -exec /bin/ls -l {} \;
+ find $i -type f -name \*.e -exec /bin/ls -l {} \;
+ find $i -type f -name \*.o -exec /bin/ls -l {} \;
+ find $i -type f -name OBJS\* -exec /bin/ls -l {} \;
+ endif
+end
+echo " Done"
+
+
+echo -n "Clean bin directories ...."
+if ($exec == "yes") then
+ /bin/rm -rf bin.*/*.[aeoZ] noao/bin.*/*.[aeoZ] OBJS* >& /dev/null
+else
+ /bin/ls -l bin.*/*.[aeoZ] noao/bin.*/*.[aeoZ] OBJS*
+endif
+echo " Done"
+
+
+echo -n "Cleaning spool files ...."
+if ($exec == "yes") then
+ find . -name spool\* -print -exec /bin/rm -f {} \; >& /dev/null
+ find . -name _spool\* -print -exec /bin/rm -f {} \; >& /dev/null
+else
+ find . -name spool\* -print
+ find . -name _spool\* -print
+endif
+echo " Done"
diff --git a/unix/hlib/util.csh/mksysgen b/unix/hlib/util.csh/mksysgen
new file mode 100755
index 00000000..770bfd3c
--- /dev/null
+++ b/unix/hlib/util.csh/mksysgen
@@ -0,0 +1,50 @@
+#!/bin/csh -f
+#
+
+if (! $?iraf) then
+ #echo ""
+ #echo "Error: You must have the iraf env variable defined !"
+ #echo ""
+ #exit 1
+
+ set iraf = $cwd/
+endif
+
+
+set c_start = `date`
+/bin/rm -f spool */spool
+
+
+$iraf/util/mkclean # clean old binaries
+
+cd $iraf/unix # NOVOS bootstrap
+source hlib/irafuser.csh
+sh -x mkpkg.sh |& tee -a spool
+
+cd $iraf/ # build NOVOS
+mkpkg |& tee -a spool
+
+cd $iraf/unix # VOS bootstrap
+source hlib/irafuser.csh
+sh -x mkpkg.sh |& tee -a spool
+
+cd $iraf/vendor # build vendor libs
+(make all |& tee -a ../spool.final)
+
+cd $iraf/ # build core system
+mkpkg |& tee -a ../spool.final
+
+cd $iraf/noao # build NOAO package
+setenv noao $cwd/
+mkpkg -p noao |& tee -a ../spool.final
+
+/bin/rm -rf bin*/pkgconfig # misc cleanup
+
+set c_end = `date`
+
+
+echo ""
+echo ""
+echo ""
+echo "Start: $c_start"
+echo " End: $c_end"
diff --git a/unix/hlib/util.csh/mkup b/unix/hlib/util.csh/mkup
new file mode 100755
index 00000000..a55c4faf
--- /dev/null
+++ b/unix/hlib/util.csh/mkup
@@ -0,0 +1,30 @@
+#!/bin/csh -f
+#
+
+set iraf = $cwd/
+source $iraf/unix/hlib/irafuser.csh
+
+# Reconfigure the system for the proper architecture if needed.
+if ($?IRAFARCH) then # use environment value
+ make $IRAFARCH
+else # use actual value
+ set arch = `$iraf/unix/hlib/irafarch.csh -actual`
+ set cfgarch = `mkpkg arch`
+ if ($cfgarch[5] != $arch) then
+ #make $arch
+ setenv IRAFARCH $arch
+ endif
+endif
+
+cd $iraf/ # build core system
+mkpkg
+mkpkg update
+
+cd $iraf/noao # build NOAO package
+setenv noao $cwd/
+mkpkg -p noao
+
+cd $iraf/vo # build VO package
+setenv vo $cwd/
+cd votools # build VOTOOLS package
+mkpkg -p vo update
diff --git a/unix/hlib/util.csh/mkupx b/unix/hlib/util.csh/mkupx
new file mode 100755
index 00000000..85d73405
--- /dev/null
+++ b/unix/hlib/util.csh/mkupx
@@ -0,0 +1,15 @@
+#!/bin/csh -f
+#
+
+set iraf = $cwd/
+
+cd $iraf/ # build core system
+mkpkg -x
+
+cd $iraf/noao # build NOAO package
+setenv noao $cwd/
+mkpkg -x -p noao
+
+cd $iraf/vo # build VO package
+setenv vo $cwd/
+mkpkg -x -p vo
diff --git a/unix/hlib/util.csh/pkgclean b/unix/hlib/util.csh/pkgclean
new file mode 100755
index 00000000..5dbf50cf
--- /dev/null
+++ b/unix/hlib/util.csh/pkgclean
@@ -0,0 +1,89 @@
+#!/bin/csh -f
+#
+# PKGCLEAN -- Clean the named package, or all packages from the system.
+#
+# Usage: pkgclean [-all] [-dist] [-init] <pkg>
+#
+# Where -all clean all packages
+# <pkg> package to be removed
+#
+# ----------------------------------------------------------------------------
+
+
+unset noclobber
+unalias rm
+
+set all = no
+set init = no
+
+# Process cmdline flags.
+while ("$1" != "")
+ switch ("$1")
+ case -all: # clean all package sources
+ set all = yes
+ breaksw
+ case -init: # init all packages
+ set init = yes
+ breaksw
+ default:
+ set pkg = $1
+ break
+ endsw
+
+ shift
+end
+
+
+if ("$all" == "yes") then
+ if (-e ".repo_pkgs") then
+ foreach p (`cat .repo_pkgs`)
+ if (-e $p) then
+ /bin/rm -rf $p
+ mkdir $p
+
+ echo "" > .installed
+ echo "" > .zzsetenv.def
+ endif
+ end
+ endif
+
+else if ("$init" == "yes") then
+ if (-e ".repo_pkgs") then
+ foreach p (`cat .repo_pkgs`)
+ if (-e $p) then
+ /bin/rm -rf $p
+ endif
+ end
+ endif
+ /bin/rm -rf Makefile >& /dev/null
+ /bin/rm -rf .installed >& /dev/null
+ /bin/rm -rf .repo* >& /dev/null
+ echo "" > .zzsetenv.def
+
+else
+ if (-e $pkg) then
+ /bin/rm -rf $pkg
+ mkdir $pkg
+ else
+ echo "Package '$pkg' is not currently installed"
+ exit 1
+ endif
+endif
+
+
+# Normal exit.
+exit 0
+
+
+
+#=============================================================================
+# Usage
+#=============================================================================
+
+Usage:
+ echo "Usage: pkgclean [-all] [-dist] [-init] <pkg>"
+ echo ""
+ echo " Where -all clean all packages"
+ echo " <pkg> package to be removed"
+
+exit 0
diff --git a/unix/hlib/util.csh/pkgdel b/unix/hlib/util.csh/pkgdel
new file mode 100755
index 00000000..fc8843d3
--- /dev/null
+++ b/unix/hlib/util.csh/pkgdel
@@ -0,0 +1,17 @@
+#!/bin/csh -f
+#
+# PKGDEL -- Delete an external package from the dynamic directory.
+#
+#
+
+
+set bindir = "`dirname $0`" # get iraf root
+set irafdir = $bindir:h
+
+
+
+if (-e $1) then
+ /bin/rm -rf $1 >& /dev/null
+endif
+
+exit 0
diff --git a/unix/hlib/util.csh/pkgenv b/unix/hlib/util.csh/pkgenv
new file mode 100755
index 00000000..9d4b9ada
--- /dev/null
+++ b/unix/hlib/util.csh/pkgenv
@@ -0,0 +1,15 @@
+#!/bin/csh -f
+#
+# PKGENV -- Initialize the package environment
+
+
+/bin/rm -f .installed .zzsetenv.def
+
+foreach p ( `cat .repo_pkgs` )
+
+ if (-e $p/.installed) then
+ cat $p/.installed >> .installed
+ echo "reset $p = $cwd/$p/" >> .zzsetenv.def
+ endif
+end
+echo "keep" >> .zzsetenv.def
diff --git a/unix/hlib/util.csh/pkgget b/unix/hlib/util.csh/pkgget
new file mode 100755
index 00000000..730485a3
--- /dev/null
+++ b/unix/hlib/util.csh/pkgget
@@ -0,0 +1,192 @@
+#!/bin/csh -f
+#
+# PKGGET -- Download the specified URL to the current directory. We use
+# a command specific to the system we're on. We assume the URL has been
+# properly escaped in the argument list.
+#
+# Usage: pkgget [-h] [-n] [-v] url
+#
+# Where -n no-op flag
+# -v verbose output
+# -h this message
+#
+# Example:
+# % pkgget -q ftp://iraf.noao.edu/iraf/extern/foo-linux.tar.gz
+#
+# ----------------------------------------------------------------------------
+
+
+unset noclobber
+onintr cleanup_
+unalias cd cp cmp echo ln mv rm sed set grep ls chmod chown pwd touch sort which
+unalias ftp wget
+
+setenv path "(../util /sbin /usr/sbin /bin /usr/bin /usr/5bin /usr/ucb /etc /usr/etc $path /usr/local/bin /opt/local/bin /local/bin /home/local/bin)"
+
+# Utility aliases.
+alias PUT "mv -f \!*; chown $user \!$ " # [MACHDEP]
+alias BOLD_ON "(tput bold)"
+alias BOLD_OFF "(tput sgr0)"
+alias SO_ON "(tput smso)"
+alias SO_OFF "(tput sgr0)"
+
+alias DO_OK "(echo -n '[ '; BOLD_ON; echo -n ' OK '; BOLD_OFF; echo ' ]')"
+alias DO_WARN "(echo -n '[ '; BOLD_ON; echo -n 'WARN'; BOLD_OFF; echo ' ]')"
+alias DO_FAIL "(echo -n '[ '; SO_ON; echo -n 'FAIL'; SO_OFF; echo ' ]')"
+
+alias ERRMSG "(echo -n ' ';BOLD_ON;echo -n 'ERROR: ' ;BOLD_OFF; echo \!*)"
+alias WARNING "(echo -n ' ';BOLD_ON;echo -n 'WARNING: ';BOLD_OFF; echo \!*)"
+alias NEWLINE "(echo '')"
+
+
+
+# set echo
+
+
+
+##############################################################################
+# START OF MACHDEP DEFINITIONS.
+##############################################################################
+
+# MACHDEP definitions which may be reset below.
+set VERSION = `cat ../.version`
+
+# Utility aliases.
+
+
+#----------------------------------
+# Determine platform architecture.
+#----------------------------------
+
+set UNAME=""
+if (-e /usr/bin/uname) then
+ set uname_cmd = /usr/bin/uname
+ set UNAME=`/usr/bin/uname | tr '[A-Z]' '[a-z]'`
+else if (-e /bin/uname) then
+ set uname_cmd = /bin/uname
+ set UNAME=`/bin/uname | tr '[A-Z]' '[a-z]'`
+else
+ WARNING "No 'uname' command found to determine architecture."
+ exit 1
+endif
+
+switch ($UNAME)
+ case linux:
+ set dlcmd = "/usr/bin/wget"
+ breaksw
+ case darwin: # Mac OSX/iOS
+ case macosx:
+ case macintel:
+ case ipad:
+ #set dlcmd = "/usr/bin/ftp -A"
+ set dlcmd = "/usr/bin/ftp"
+ breaksw
+
+ # Other architectures to be added here
+
+ default:
+ ERRMSG "Unable to determine platform architecture."
+ exit 1
+endsw
+
+# If we don't have a download command installed, use our own .....
+if (! -e $dlcmd) then
+ set dlcmd = `dirname $0`/fget
+endif
+
+##############################################################################
+# END OF MACHDEP DEFINITIONS.
+##############################################################################
+
+#=============================================================================
+# Declarations and initializations.
+#=============================================================================
+
+set exec = yes
+set verb = no
+set url = ""
+
+
+# Process cmdline flags.
+while ("$1" != "")
+ switch ("$1")
+ case -n: # no execute
+ set exec = no
+ breaksw
+ case -v: # be chatty
+ set verb = yes
+ set quiet = no
+ breaksw
+ case -h: # print help summary
+ goto Usage
+ default:
+ set url = $1
+ break
+ endsw
+
+ if ("$2" == "") then
+ break
+ else
+ shift
+ endif
+end
+
+
+# Error checks.
+if ("$url" == "") then
+ if ("$verb" == "yes") then
+ echo "ERROR: URL not specified"
+ endif
+ exit 1
+endif
+
+
+# Do it.
+if ("$exec" == "yes") then
+ if ("$verb" == "yes") then
+ echo "Downloading "$url" ...."
+ endif
+
+ if ("$verb" == "no") then
+ $dlcmd $url >& /dev/null
+ else
+ $dlcmd $url
+ endif
+
+ if ("$verb" == "yes") then
+ echo "done"
+ endif
+endif
+
+
+# Verify we have the file.
+if (! -e $url:t) then
+ if ("$verb" == "yes") then
+ echo "Error downloading file '"$url:t"'"
+ endif
+ exit 1
+
+else
+ if ($#argv > 1) then
+ mv $url:t $2
+ endif
+endif
+
+# Normal exit.
+exit 0
+
+
+
+#=============================================================================
+# Usage
+#=============================================================================
+
+Usage:
+ echo "Usage: pkgget [-h] [-n] [-q | -v] url"
+ echo ""
+ echo " where -n # no execute"
+ echo " -q # suppress output"
+ echo " -v # verbose output"
+ echo " -h # this message"
+
+exit 0
diff --git a/unix/hlib/util.csh/pkginit b/unix/hlib/util.csh/pkginit
new file mode 100755
index 00000000..b93eb61d
--- /dev/null
+++ b/unix/hlib/util.csh/pkginit
@@ -0,0 +1,43 @@
+#!/bin/csh -f
+#
+# PKGINIT - Initialize the dynamic package directory by fetching the most
+# recent repository definition files.
+
+unalias grep
+
+set bindir = "`dirname $0`" # get iraf root directory
+set irafdir = $bindir:h
+
+set REPO = `${irafdir}/util/pkgrepo` # get repo url
+set man = ".repo_manifest"
+set arch = `${irafdir}/unix/hlib/irafarch.csh -actual`
+
+
+$irafdir/util/pkgget ${REPO}/REPO.MANIFEST .repo_manifest
+if ($status == 1) then
+ echo "Cannot download repository manifest file, quitting."
+ exit $status
+endif
+
+$irafdir/util/pkgget ${REPO}/REPO.DESC .repo_desc
+if ($status == 1) then
+ echo "Cannot download repository description file, quitting."
+ exit $status
+endif
+
+
+# Create a list of packages available for the current platform. We pull
+# out the list from the repository manifest of all packages. If we have
+# IRAFARCH defined, assumed we're interested in managing multiple
+# architectures so don't filter by the current architecture.
+
+if ($?IRAFARCH) then
+ cat $man | egrep -v "^#" | awk '{printf("%s\n", $2)}' | uniq > .repo_pkgs
+ cat $man > .repo_local
+else
+ cat $man | grep "${arch}\ " | awk '{printf("%s\n", $2)}' > .repo_pkgs
+ cat $man | grep "${arch}\ " > .repo_local
+endif
+
+
+exit 0
diff --git a/unix/hlib/util.csh/pkginst b/unix/hlib/util.csh/pkginst
new file mode 100755
index 00000000..2111a607
--- /dev/null
+++ b/unix/hlib/util.csh/pkginst
@@ -0,0 +1,86 @@
+#!/bin/csh -f
+#
+# PKGINST - Install the named package.
+
+unalias grep sort uniq ls awk
+
+if ($#argv < 1) then
+ exit 0
+else
+ set pkg = $1
+endif
+
+set bindir = "`dirname $0`" # get iraf root directory
+set irafdir = $bindir:h
+
+set REPO = `${irafdir}/util/pkgrepo`
+if ($?IRAFARCH) then
+ set arch = $IRAFARCH
+else
+ set arch = `${irafdir}/unix/hlib/irafarch.csh -actual`
+endif
+
+echo "Setting architecture: '$arch' .... "
+
+
+# Get any dependency package names.
+set deps=`grep ^$pkg .repo_desc | awk '{printf("%s\n",$2)}' | sed -e 's/,/ /g'`
+set pkg_dep = ""
+foreach d ( $deps )
+ if ("$d" != "none") then
+ echo "Adding dependency '$d' ...."
+ set pkg_dep = "$pkg_dep $d"
+ endif
+end
+
+# Make a unique list of package, i.e. remove multiple instances of a package.
+# [Note: Not used, the manifest should have this already. ]
+set list = `echo $pkg_dep $pkg|awk 'BEGIN {RS=" |\n";}{print $1;}'|sort|uniq`
+
+# Process the requested package and any dependencies.
+foreach ip ($pkg_dep $pkg)
+
+ set pfile = `grep \ $ip\ .repo_manifest | grep ${arch}\ | head -1 | awk '{printf("%s\n",$4)}'`
+
+ echo $pfile | grep src.tar.gz > /dev/null
+ if ($status == 0) then
+ set src_only = 1
+ else
+ set src_only = 0
+ endif
+
+ # Remove an existing package file.
+ if (-e $pfile) then
+ /bin/rm -f $pfile
+ endif
+
+ # Download the repo file and unpack it.
+ echo -n "Installing package '$ip' .... "
+ ${irafdir}/util/pkgget ${REPO}/$pfile
+ if ($status == 1) then
+ echo " [Error]"
+ exit $status
+ endif
+
+ if (-e $pfile) then
+
+ tar zxf $pfile
+ /bin/rm -f $pfile
+ echo `date +%s`" " ${ip}.${arch} > $ip/.installed.${arch}
+ echo `date +%s`" " $ip > $ip/.installed
+
+ if ($src_only == 1) then
+ echo " [SOURCE ONLY]"
+ echo `date +%s`" " $ip > $ip/.src_only
+ else
+ echo " [OK]"
+ endif
+ else
+ echo " [Error]"
+ endif
+
+ ${irafdir}/util/pkgenv -init
+
+end
+
+exit 0
diff --git a/unix/hlib/util.csh/pkgrepo b/unix/hlib/util.csh/pkgrepo
new file mode 100755
index 00000000..f87cbe66
--- /dev/null
+++ b/unix/hlib/util.csh/pkgrepo
@@ -0,0 +1,13 @@
+#!/bin/csh -f
+#
+# PKGREPO - Get the repository base URI, either from the environment
+# variable 'IRAF_REPO' or the default.
+
+
+if ($?IRAF_REPO) then
+ echo $IRAF_REPO
+else
+ echo "ftp://iraf.noao.edu/iraf/v216/REPO"
+endif
+
+exit 0
diff --git a/unix/hlib/util.csh/pkgupdate b/unix/hlib/util.csh/pkgupdate
new file mode 100755
index 00000000..7d93bcd7
--- /dev/null
+++ b/unix/hlib/util.csh/pkgupdate
@@ -0,0 +1,106 @@
+#!/bin/csh -f
+#
+# PKGUPDATE - Update the named packages
+
+unalias grep ls
+
+set pkg = ""
+set all = no
+set list_only = no
+
+if ($#argv < 1) then
+ exit 0
+else
+ # Process cmdline flags.
+ while ("$1" != "")
+ switch ("$1")
+ case -all: # clean all package sources
+ set all = yes
+ breaksw
+ case -list: # list packages needing updating
+ set list_only = yes
+ breaksw
+ default:
+ set pkg = $1
+ break
+ endsw
+
+ shift
+ end
+endif
+
+
+set bindir = "`dirname $0`" # get iraf root directory
+set irafdir = $bindir:h
+
+set REPO = `${irafdir}/util/pkgrepo`
+if ($?IRAFARCH) then
+ set arch = $IRAFARCH
+else
+ set arch = `${irafdir}/unix/hlib/irafarch.csh -actual`
+endif
+
+echo "Updating repository data ...."
+../util/pkginit # init repository information
+
+# Check for a self-update.
+if ("$pkg" == "-self") then
+ echo "Updating utility scripts ...."
+ /bin/rm -f /tmp/util.tgz
+ ../util/pkgget ${REPO}/util-universal.tar.gz /tmp/util.tgz
+ (chdir ../util ; tar zxf /tmp/util.tgz ; /bin/rm -f /tmp/util.tgz)
+ echo "Done"
+ exit 0
+endif
+
+# Check for a extern update.
+if ("$pkg" == "-config") then
+ echo "Updating config script ...."
+ ../util/pkgget ${REPO}/config-universal configure
+ chmod 777 configure
+ echo "Done"
+ exit 0
+endif
+
+
+
+# Process the requested package and any dependencies.
+foreach ip ( `cat .repo_pkgs` )
+
+ if (-e $ip/.installed) then
+
+ set pd = `grep $ip $ip/.installed | awk '{printf("%s\n", $1)}'`
+ set rd = `grep $ip .repo_manifest | head -1 | awk '{printf("%s\n", $3)}'`
+
+ set alist = `(chdir $ip; ls -1 .inst*.* | sed -e "s/\.installed\.//g")`
+
+ if ($rd > $pd) then
+
+ # Update each installed architecture automatically.
+ foreach a ( $alist )
+
+ if ("$list_only" == "yes") then
+ printf "Package %-12s for %-8s is out of date ....\n" $ip $a
+ else
+ if ("$all" == "yes" || "$ip" == "$pkg") then
+ echo "Updating package '$ip' for '$a' ...."
+ ../util/pkginst $ip
+ endif
+ endif
+ end
+
+ else
+ if ("$list_only" == "yes" || $rd <= $pd) then
+ printf "Package %-12s is current ....\n" $ip
+ endif
+ endif
+
+ else
+ printf "Package %-12s is not installed ....\n" $ip
+ endif
+
+ ${irafdir}/util/pkgenv -init
+end
+
+echo "Done"
+exit 0
diff --git a/unix/hlib/util.csh/self_update b/unix/hlib/util.csh/self_update
new file mode 100755
index 00000000..9ba35b43
--- /dev/null
+++ b/unix/hlib/util.csh/self_update
@@ -0,0 +1,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