getconfig.sh

来自「xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本」· Shell 代码 · 共 65 行

SH
65
字号
#!/bin/sh############ File:         getconfig.sh## Purpose:      Get a copy of the config subdir.## Version:      $Id: getconfig.sh,v 1.1 2005/08/16 19:05:26 hckim Exp $## Copyright (C) University of Colorado and Tech-X Corporation############ Get optionswhile test -n "$1"; do  case "$1" in    -q)      QUIETOPT="-q"      shift      ;;  esacdone# Determine the echo without trailing newlinecase `uname` in  Linux)    ECHONONL="echo -n"    ;;  SunOS)    ECHONONL="/usr/ucb/echo -n"    ;;  *)    ECHONONL="echo -n"    ;;esac# Determine the release# REL=`cat CVS/Entries | grep Makefile.am | sed 's/^.*200.\///' | sed 's/\///g'`# if test -n "$REL"; then#  REL=`echo $REL | sed 's/^T//'`#  RELSTR="-r $REL"# fi# Determine how to get configloginname=`whoami`if test -z "$QUIETOPT"; then  $ECHONONL "Do you have direct access to the config/ repository on fusion.txcorp.com? (y/n) "  read lnelse  ln=yfi# Get if test "$ln" = y -o "$ln" = yes -o "$ln" = ""; then  cmd="cvs -d :ext:$loginname@fusion.txcorp.com:/fusion/pubproj co config"  echo $cmd  $cmdelse  echo "Hit return at request for password"  cvs -d :pserver:config-ro@fusion.txcorp.com:/fusion/pubproj login  cvs -d :pserver:config-ro@fusion.txcorp.com:/fusion/pubproj co config  rm -f CVS/Entries.Logfi

⌨️ 快捷键说明

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