= Build scripts
=
#!/bin/sh
# usage>
# ./build.sh [98] [c|cm]
#--------------------------------------------
SVN_AUTH="--no-auth-cache --non-interactive --username c1004w --password c1004w"
SVN_TRUNK="http://10.1.0.1/c1004w/svn/trunk"
SVN_TARGET="4w_build_T108_109"
#--------------------------------------------
svn ${SVN_AUTH} co ${SVN_TRUNK} ${SVN_TARGET}
cd ${SVN_TARGET}
#--------------------------------------------
#================================ Blocked Start ================================
if [ ! -e "userspace/public" ]
then
echo "Invalid Build path!!!"
echo "Please go to the TOP build directory."
echo "Usage> ./build.sh [98|181] [c|cm|m]"
echo " 98 : TR-098"
echo " 181 : TR-181(Default)"
echo " c : clean only"
echo " cm : clean & make(Default)"
echo " m : make only"
exit
fi
#================================ Blocked End ================================
#
#--------------------------------------------
XN_HOME=$PWD
#--------------------------------------------
if [ "X$1" == "X98" ]; then
PROFILE="C1004WAE_COMCAST_TR98"
shift
else
PROFILE="C1004WAE_COMCAST_TR181"
fi
#--------------------------------------------
if [ "X$1" == "Xcm" ]; then
ACTION="clean all"
shift
elif [ "X$1" == "Xc" ]; then
ACTION="clean"
shift
else
ACTION=""
fi
#--------------------------------------------
#--------------------------------------------
#--------------------------------------------
sed -i 's/IMAGE_NAME=.(PROFILE).R/IMAGE_NAME=$(PROFILE).T/g' make.ubiquoss
sed -i 's/UBQS_VERSION_PREFIX=.*$/UBQS_VERSION_PREFIX=108/g' make.ubiquoss
make PROFILE=$PROFILE $ACTION
sed -i 's/UBQS_VERSION_PREFIX=.*$/UBQS_VERSION_PREFIX=109/g' make.ubiquoss
make PROFILE=$PROFILE $ACTION
rm make.ubiquoss && svn ${SVN_AUTH} co make.ubiquoss
echo "===> List of images <===" && ls -ltr ${XN_HOME}/images | tail -10
'프로...Linux' 카테고리의 다른 글
Makefile (0) | 2018.07.03 |
---|---|
[SVN] Tag / Branch / Merge (0) | 2018.03.30 |
[gvim] centos 한글폰트 추가 (0) | 2015.02.05 |
[Debugging] Console없이 Console로그 보기 (0) | 2015.02.05 |
[SVN] svn 서버와 싱크가 제대로 안맞을 때 (0) | 2014.12.23 |