⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install_updates

📁 gps数据处理软件--GAMIT
💻
字号:
#!/bin/csh -x# Script to install incremental updates to GAMIT and GLOBK, starting from a compressed tarfile# R. King  28 February 2001, based on install_software (see history)##################### SET UP DEFAULTS #############################   set mypath = `pwd`set compiler = ''##################### DECIPHER COMMAND LINE #######################   while ($#argv > 0 )  set input = ( $argv )  switch($input[1])    case -c:      set compiler = $argv[2]      breaksw   endsw  if ( $#argv > 0 ) shift argvendalldone:##################### GET THE JOB DONE ############################echo " "echo Updated GAMIT and GLOBK source, shell scripts, tables, and templates to be installed into $mypath  echo " "         echo "The compressed tarfile will be removed after extraction of the "echo "directories, but except for that, the script may be stopped and"echo "rerun safely from any point.  Tarfile to be uncompressed:" echo " "  set files = `ls incremental*.Z *.gz incremental*.tar`echo "    $files"echo " "    echo "Continue ? (y/n)"set ans = $<if ( $ans == '' ) set ans = 'y'if ( $ans == 'n' ) exit# List the contents of the updates files before overwriting the existing directoriesecho " "echo "Listing of the updates to be installed: "echo " "foreach f ($files)   if ( -e $f ) then      if ( $f:e == 'Z' ) then       zcat $f | tar -tvf -       else if ( $f:e == 'gz' ) then       gunzip -c $f | tar -tvf -     else if ( $f:e == 'tar' ) then       tar -tvf $f     else       echo "Unknown file type $f NOT listed"     endif    endifend  echo " "echo "Do you want to install these changes into " $mypath " (y/n) ?"set ans = $<if ( $ans != 'y' && $ans != 'yes' ) then  echo " "   echo "Install terminated"  exitendifecho " "echo ".. uncompressing and extracting the directories:"echo " "  foreach f ($files)   if ( -e $f ) then      if ( $f:e == 'Z' ) then       zcat $f | tar -xvf -       else if ( $f:e == 'gz' ) then       gunzip -c $f | tar -xvf -     else if ( $f:e == 'tar' ) then       tar -xvf $f     else       echo "Unknown file type $f NOT extracted"     endif      \rm -f $f    endifend # Ask if a complete remake is desired or only a recompilation of the changed modulesecho "Do you want to remake everything from scratch (all) or only the changed modules (new)?"set ans = $<if ( $ans == 'all' ) then  set refresh = 'y'else  set refresh = 'n' endifif ( $refresh == 'y' ) then  echo " "          echo "  .. removing any existing Makefiles or archive files from libraries directories"  rmfresh -p $mypath -d libraries -M -ao     echo " "  echo "  .. removing any existing Makefiles or archive files from gamit directories"  rmfresh -p $mypath -d gamit -M  -aoendifecho " "echo "  .. making libraries and gamit"make_gamit $mypath $compiler if( $status != 0 ) then  echo "Failure in make_gamit -- install_software terminated"   exit  endif        echo " "echo "  .. removing any existing Makefiles or archive files from kf directories"rmfresh -p $mypath -d  kf -M -aoecho " "echo "  .. making globk modules in kf directories"make_globk $mypath  $compilerif( $status != 0 ) then  echo "Failure in make_globk -- install_software terminated"     exitendif endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -