CASA-auth-token-client: check in build scripts for autobuild

This commit is contained in:
soochoi 2007-02-06 21:35:17 +00:00
parent aa54b290d8
commit 8719ce2410
3 changed files with 61 additions and 4 deletions

View File

@ -0,0 +1,60 @@
#!/bin/bash
## creating ENV varaibles
SOURCE_DIR=`pwd`
export BUILD_ROOT=$SOURCE_DIR/../autobuild/BUILD
PACKAGE=CASA_auth_token_client
VERSION=1.7.$1
TEMP_DIR=$SOURCE_DIR/SOURCES
RPMS_DIR=$BUILD_ROOT/usr/src/packages
##creating tar.gz
rm -rf ../bld_tst
mkdir ../bld_tst
mkdir ../bld_tst/CASA_auth_token_client-1.7.$1
cp -R ./* ../bld_tst/CASA_auth_token_client-1.7.$1
cd ../bld_tst/CASA_auth_token_client-1.7.$1
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA_auth_token_client, 1\.7\.$1\)/" ./configure.in
find . -name "*.lux" | xargs dos2unix > /dev/null 2>&1
find . -name "mk*" | xargs dos2unix > /dev/null 2>&1
find . -name "mk*" | xargs chmod +x > /dev/null 2>&1
find . -name "Make*" | xargs dos2unix > /dev/null 2>&1
find . -name "*.c" | xargs dos2unix > /dev/null 2>&1
find . -name "*.cs" | xargs dos2unix > /dev/null 2>&1
find . -name "*.cpp" | xargs dos2unix > /dev/null 2>&1
find . -name "*.h" | xargs dos2unix > /dev/null 2>&1
find . -name "link*" | xargs dos2unix > /dev/null 2>&1
find . -name ".svn" | xargs rm -rf > /dev/null 2>&1
find . -name "*.sh" | xargs dos2unix > /dev/null 2>&1
find . -name "*.sh" | xargs chmod +x > /dev/null 2>&1
find . -name "*ver.txt" | xargs dos2unix > /dev/null 2>&1
find . -name "*build.txt" | xargs dos2unix > /dev/null 2>&1
find . -name "*.mak" | xargs dos2unix > /dev/null 2>&1
find . -name "*.cl" | xargs dos2unix > /dev/null 2>&1
find . -name "*.spec" | xargs dos2unix > /dev/null 2>&1
find . -name "*.patch" | xargs dos2unix > /dev/null 2>&1
find . -name "*.changes" | xargs dos2unix > /dev/null 2>&1
cd ..
tar cjf ../CASA_auth_token_client-1.7.$1.tar.bz2 ./CASA_auth_token_client-1.7.$1
#creating spec file
cd $SOURCE_DIR
mkdir --parents $PRODUCTS_DIR $TEMP_DIR
cp ../CASA_auth_token_client-1.7.$1.tar.bz2 $TEMP_DIR
cp $SOURCE_DIR/package/linux/CASA_auth_token_client.spec.in $TEMP_DIR/CASA_auth_token_client.spec
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA_auth_token_client.spec
sed -i "s/@PACKAGE@/CASA_auth_token_client/" $TEMP_DIR/CASA_auth_token_client.spec
ed -i '/make/a\make package/' $TEMP_DIR/CASA_auth_token_client.spec
cp $SOURCE_DIR/package/linux/CASA.changes $TEMP_DIR
cd $TEMP_DIR
##call autobuild
. /opt/SuSE/bin/.profile
sudo build --clean
##copy rpms to temp directoy
cp -rf $RPMS_DIR/RPMS $TEMP_DIR
cp -rf $RPMS_DIR/SRPMS $TEMP_DIR

View File

@ -15,9 +15,6 @@ mkdir ../bld_tst
mkdir ../bld_tst/CASA-kwallet-1.7.$1 mkdir ../bld_tst/CASA-kwallet-1.7.$1
cp -R ./* ../bld_tst/CASA-kwallet-1.7.$1 cp -R ./* ../bld_tst/CASA-kwallet-1.7.$1
echo "pwd"
echo "soo"
cd ../bld_tst/CASA-kwallet-1.7.$1 cd ../bld_tst/CASA-kwallet-1.7.$1
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA-kwallet, 1\.7\.$1\)/" ./configure.in sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA-kwallet, 1\.7\.$1\)/" ./configure.in

View File

@ -43,7 +43,7 @@ cp ../CASA-1.7.$1.tar.bz2 $TEMP_DIR
cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec
sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec
cp $SOURCE_DIR/package/linux/CASA.changes $TEMP_DIR cp $SOURCE_DIR/CASA.changes $TEMP_DIR
cd $TEMP_DIR cd $TEMP_DIR
##call autobuild ##call autobuild