2012年1月6日 星期五

[work] cvs shell script


#!/bin/bash

#

#**************************************************************************

#*                                                                        *

#*  atp-get install.sh                                                    *

#*  12 November, 2011                                                     *

#*                                                                        *

#*  created by: Freeman                                                   *                                                          *

#*                                                                        *

#**************************************************************************

date=$(date +%Y%m%d%H%M)

CURRENT_PATH=`pwd`

source /opt/export_env

cd $CURRENT_PATH



rm -fr NTGR_D3_CableRG

sleep 5

cvs checkout NTGR_D3_CableRG

sleep 30

cp -f $CURRENT_PATH/.config $CURRENT_PATH/NTGR_D3_CableRG/Porting/Build/

cd $CURRENT_PATH/NTGR_D3_CableRG/Porting/Build/

make clobber

sleep 5

make clean

sleep 5

make

sleep 20

cd $CURRENT_PATH

sleep 2

tar -jcv -f NTGR_D3_CableRG_$date.tar.gz ./NTGR_D3_CableRG/*



 

0 意見:

張貼留言