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

📄 regress-nightly.sh

📁 ipsec vpn
💻 SH
字号:
#!/bin/sh## This is the nightly build script.# It does almost nothing since the process itself is kept in CVS.## This causes some bootstrap problems, but we deal with that by understanding# that this first stage bootstrap can not updated automatically. This script# should be copied somewhere that is not in the release tree (i.e. ~/bin) # and invoked periodically. #if [ -f $HOME/freeswan-regress-env.sh ]then    . $HOME/freeswan-regress-env.shfi# /btmp is a place with a bunch of space. BTMP=${BTMP:-/btmp} export BTMP# CVSROOT is set if not already set to the repository location.# if remote, make sure you have cvs login done already.CVSROOT=${CVSROOT:-/freeswan/MASTER} export CVSROOT# BRANCH can also be set to test branches.BRANCH=${BRANCH:-HEAD} export BRANCH# rest of not to be touched.YEAR=`date +%Y` export YEARMONTH=`date +%m` export MONTHDAY=`date +%d` export DAYTODAY=`date +%Y_%m_%d` export TODAYTODAYSPLIT=`date +%Y/%m/%d` export TODAYSPLITBUILDSPOOL=$BTMP/$USER/$BRANCH/$TODAY export BUILDSPOOL# go to subshell so that exit can abort that shell(mkdir -p $BUILDSPOOL || exit 3cd $BUILDSPOOL || (echo "Can not make spool directory"; exit 4)exec >$BUILDSPOOL/stdout.txtexec 2>$BUILDSPOOL/stderr.txt# invoke file space cleanup first.$HOME/bin/regress-cleanup.pl || (echo "Disk space cleanup failed"; exit 5)cvs -Q -d $CVSROOT checkout -r $BRANCH $TOPMODULEif [ $? != 0 ]then        echo "Failed to checkout source code. "        exit 10fi# invoke stage 2 now.chmod +x $BUILDSPOOL/$TOPMODULE/testing/utils/regress-stage2.sh  $BUILDSPOOL/$TOPMODULE/testing/utils/regress-stage2.sh  || exit 6# warn about changes in myself.cmp $BUILDSPOOL/$TOPMODULE/testing/utils/regress-nightly.sh $0	if [ $? != 0 ]then    echo WARNING $BUILDSPOOL/$TOPMODULE/testing/utils/regress-nightly.sh differs from $0.fi)# $Id: regress-nightly.sh,v 1.10 2003/11/21 23:07:03 mcr Exp $## $Log: regress-nightly.sh,v $# Revision 1.10  2003/11/21 23:07:03  mcr# 	updates for hulk builds of openswan.## Revision 1.9  2003/02/01 20:45:58  mcr# 	moved regress results directory to be per year/month## Revision 1.8  2003/01/24 16:21:41  build#	moved capture of stdout/stderr to after disk space cleanup,#	so that we can get better logging## Revision 1.7  2002/05/24 03:24:04  mcr# 	put all of build process into subshell so that regress-nightly.sh# 	can be sourced, but the script can still exit nicely.## Revision 1.4  2002/02/11 22:05:28  mcr# 	initial scripts to export REGRESSRESULTS to support# 	saving of testing results to a static area.## Revision 1.3  2002/01/12 03:34:33  mcr# 	an errant BUILDTOP remained. -> BUILDSPOOL.## Revision 1.2  2002/01/11 22:14:31  mcr# 	change BUILDTOP -> BUILDSPOOL.# 	chmod +x all the scripts, just in case.## Revision 1.1  2002/01/11 04:26:48  mcr# 	revision 1 of nightly regress scripts.##

⌨️ 快捷键说明

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