- Timestamp:
- 03/31/2011 05:33:28 PM (12 years ago)
- Location:
- SH_SHM/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/setup/setup.py
r343 r358 3 3 import os 4 4 import sys 5 import shutil 5 6 6 7 default_location = "/usr/local/sh" … … 41 42 print "Downloading %s..." % pkg 42 43 43 verbose = dbg and "" or "-q " 44 verbose = "" 45 if dbg: 46 verbose = "-q " 47 print downloads[pkg] 44 48 45 if os.system("wget %s-P %s %s" % (verbose, target, downloads[pkg])): 46 abort("Cannot download %s. Exit here." % pkg) 49 if downloads[pkg].split(":")[0].lower() in ["http", "ftp"]: 50 error = os.system("wget %s-P %s %s" % (verbose, target, downloads[pkg])) 51 else: 52 # try to copy file 53 error = True 54 try: 55 shutil.copy(downloads[pkg], target) 56 error = False 57 except IOError: 58 pass 59 60 if error: 61 abort("Cannot access %s. Exit here." % pkg) 47 62 48 63 def setup(**kwargs): … … 87 102 88 103 copy(os.path.join(data["pwd"], ".."), os.path.join(target, "sh"), dbg) 89 download(target, "locsat", dbg) 90 download(target, "fk", dbg) 104 105 for pkg in ["locsat", "fk"]: 106 downloads[pkg] = kwargs.get(pkg) 107 download(target, pkg, dbg) 91 108 92 109 exitcode = install(target, dbg) … … 153 170 help="Turn on debug option.", default=False) 154 171 172 parser.add_option("--locsat", dest="locsat", action="store", 173 help="Overwrite locsat installation source.", 174 default=downloads["locsat"]) 175 176 parser.add_option("--fk", dest="fk", action="store", 177 help="Overwrite fk package installation source.", 178 default=downloads["fk"]) 179 155 180 (options, args) = parser.parse_args() 156 181 -
SH_SHM/trunk/source/Makefile
r95 r358 86 86 87 87 depend: 88 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) seismhan.c88 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) seismhan.c 89 89 90 90 -
SH_SHM/trunk/source/foreign/Makefile
r200 r358 35 35 36 36 depend: 37 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(LIB_FRGN_SRCS)37 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LIB_FRGN_SRCS) 38 38 39 39 -
SH_SHM/trunk/source/gcf/Makefile
r200 r358 58 58 59 59 depend: 60 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(ALL_LOCAL_SRCS)60 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(ALL_LOCAL_SRCS) 61 61 62 62 -
SH_SHM/trunk/source/img/Makefile
r20 r358 65 65 66 66 depend: 67 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- mapmatrix.c animatrix.c mapslow.c67 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- mapmatrix.c animatrix.c mapslow.c 68 68 69 69 # DO NOT DELETE -
SH_SHM/trunk/source/motif/Makefile
r293 r358 78 78 79 79 depend: 80 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) shm.c80 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) shm.c 81 81 82 82 -
SH_SHM/trunk/source/newgraph/Makefile
r341 r358 32 32 33 33 depend: 34 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS)34 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) 35 35 36 36 -
SH_SHM/trunk/source/seed_io/Makefile
r341 r358 152 152 153 153 depend: 154 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(ALL_LOCAL_SRCS)154 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(ALL_LOCAL_SRCS) 155 155 156 156 -
SH_SHM/trunk/source/sysbase.h
r341 r358 35 35 */ 36 36 37 #include <stdlib.h> 37 38 38 39 #ifndef __SYSBASE -
SH_SHM/trunk/util/Makefile
r76 r358 263 263 264 264 depend: 265 makedepend-s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS)265 gccmakedep -s "# DO NOT DELETE" -- $(CFLAGS) -- $(LOCAL_SRCS) 266 266 267 267
Note: See TracChangeset
for help on using the changeset viewer.