dustem_make_minimal_filelist.pro
1.25 KB
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
PRO dustem_make_minimal_filelist
depfiles=file_search('DustEMWrap_nosys_*xcat',count=nfiles)
for i=0,nfiles-1 do begin
if i eq 0 then st=read_xcat(depfiles[i])
if i ge 1 then begin
tmp=read_xcat(depfiles[i])
st=[st,tmp]
endif
endfor
st=st(sort(st.path))
st=st(uniq(st.path))
for i=0,n_elements(st)-1 do begin
st[i].path=strmid(st[i].path,strlen(!dustem_wrap_soft_dir))
print,st[i].path
endfor
stop
; the above will dump the list of routines to the screen.
; after that I just cut and pasted the output to a .txt file
; dustem_minimal_filelist.txt
; which I moved to !dustem_wrap_soft_dir
; then I changed wd to !dustem_wrap_soft_dir
; then I added the top level .txt and .xcat files, i.e.
; ls README.txt >> dustem_minimal_filelist.txt
; ls instrument_description.xcat >> dustem_minimal_filelist.txt
; for now I left out the Docs
; then I added the contents of Data using
; find Data -type f >> dustem_minimal_filelist.txt
; and manually removed a few transmission files that I knew were not
; in the repo (MIRI/*_trans.fits) or tmp files ~file~, #file# type things
; and finally to make the tarball I ran
; tar cvf dustemwrap_minimal.tar -T dustem_minimal_filelist.txt
the_end:
END