Changeset 340 for SH_SHM/trunk
- Timestamp:
- 03/03/2011 05:37:32 PM (13 years ago)
- Location:
- SH_SHM/trunk/setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/setup/SHM-install.csh
r338 r340 82 82 while ("$cmd" != "i") 83 83 84 echo "======================================================================" 84 85 echo "" 85 86 echo "(u) user root path: $userroot" … … 89 90 echo "(q) Quit Installation" 90 91 echo "" 91 echo " if all settings are ok, enter 'i'"92 echo "If all settings are ok, enter 'i'" 92 93 echo "" 93 echo -n " cmd: "94 echo -n "Your command: " 94 95 set cmd="$<" 95 96 … … 232 233 cd $SH_LIB 233 234 if (-e libahio.a) mv libahio.a libahio.ax 234 \rm *.a 235 \rm *.a > /dev/null 235 236 if (-e libahio.ax) mv libahio.ax libahio.a 236 237 cd $SH_ROOT … … 278 279 touch $resrc 279 280 endif 280 set res=`grep "SHM *locsat_prefix_text" $resrc`281 set res=`grep "SHM.locsat_prefix_text" $resrc` 281 282 if ("$res" == "") then 282 283 echo "SHM*locsat_prefix_text.value: tab" >>$resrc … … 295 296 xrdb $resrc 296 297 297 echo " "298 echo "========================================================================" 298 299 echo "" 299 300 echo "Please update your environment before using SH or SHM!" … … 305 306 echo "source $dstpath/sh/setup/shsetup.sh" 306 307 echo "" 308 echo "========================================================================" -
SH_SHM/trunk/setup/setup.py
r339 r340 1 import os.path2 1 #! /usr/bin/env python 3 2 … … 41 40 def download(target, pkg): 42 41 print "Downloading %s..." % pkg 43 os.system("wget - P %s %s" % (target, downloads[pkg]))42 os.system("wget -q -P %s %s" % (target, downloads[pkg])) 44 43 45 44 def setup(**kwargs): … … 99 98 flist = ["STATINF.DAT", "sensitivities.txt", "filter_lookup.txt"] 100 99 101 print " A backup of your shm-config.txt has been saved under"100 print "\nA backup of your shm-config.txt has been saved under" 102 101 print " %s/sh/inputs/shm-config.txt.yours" % target 103 102 104 print " Seismic Handler comes with updated station configuration files."103 print "\nSeismic Handler comes with updated station configuration files." 105 104 a = raw_input("Do you want to use them (backup will be saved) [Yn]? ") 106 105 107 106 if a == "n": 108 print " Please check the following files manually (sh/inputs):"107 print "\nPlease check the following files manually (sh/inputs):" 109 108 for f in flist: 110 109 print f, "vs.", f+".dist" … … 112 111 113 112 for f in flist: 114 tname = os.path join(target, f)113 tname = os.path.join(target, "sh/inputs", f) 115 114 if os.path.exists(tname): 116 115 print "Backing up %s... (to %s)" % (f, f+".yours")
Note: See TracChangeset
for help on using the changeset viewer.