Changeset 586 for trunk/technical/common/build
- Timestamp:
- Sep 2, 2002, 4:41:47 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/build.sh
r585 r586 1 1 #!/bin/bash 2 2 # Remote build script (iboernig@suse.de) 3 # $Id: build.sh,v 1. 2 2002/08/29 15:06:49 stephandExp $3 # $Id: build.sh,v 1.3 2002/09/02 14:41:47 pstorz Exp $ 4 4 # 5 5 # Kurze Featuritis: … … 34 34 [ -z "$BUILD_DIST" ] && BUILD_DIST="${OS_TYPE}${OS_VER}-$ARCH" 35 35 [ -z "$BUILD_ROOT" ] && BUILD_ROOT="/abuild/buildsystem.$BUILDHOST.$USER.$BUILD_DIST.smartclient" 36 [ -z "$BUILD_PREPARE_SPEC" ] && BUILD_PREPARE_SPEC="no" 36 37 37 38 [ -z $DEST_DIR ] && DEST_DIR="/tmp/smartclient_build" … … 41 42 42 43 SPECFILE=$(ls *.spec | awk '{print $1}') 43 TARFILE=$(ls *.tar.gz | awk '{print $1}') 44 TARFILE=$(ls *.tar.[gb]z*| awk '{print $1}') 45 DIFFILES=$(ls *.dif | awk '{print $1}') 46 47 # sonstige files die gebraucht werden 48 RESTFILES=$(ls *.init | awk '{print $1}') # fuer srpm inetd 44 49 45 50 PACKAGE=$(awk '/^Name:/ {print $2}' <$SPECFILE) … … 56 61 mkdir -p ${BUILDTEMP}/${ARCH}/${OS_TYPE}/${OS_VER}" 57 62 58 scp -oProtocol=$SSH_VERSION $TARFILE $SPECFILE $ {FQBUILDHOST}:${BUILDTEMP}/src/${PACKAGE}-${VERSION}63 scp -oProtocol=$SSH_VERSION $TARFILE $SPECFILE $DIFFILES $RESTFILES ${FQBUILDHOST}:${BUILDTEMP}/src/${PACKAGE}-${VERSION} 59 64 60 65 # create buildscript … … 66 71 export BUILD_ROOT=$BUILD_ROOT 67 72 export BUILD_DIST=$BUILD_DIST 73 export BUILD_PREPARE_SPEC=$BUILD_PREPARE_SPEC 74 75 echo "BUILD_PREPARE_SPEC ist $BUILD_PREPARE_SPEC"; 76 77 68 78 cd ~${BUILDUSER}/${BUILDTEMP}/src/${PACKAGE}-${VERSION} 69 build $BUILD_MODE --prefer-rpms ~${BUILDUSER}/${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER79 build $BUILD_MODE --prefer-rpms ~${BUILDUSER}/${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER 70 80 EOF 71 81 … … 79 89 . ~$BUILDUSER/${BUILDTEMP}/src/${PACKAGE}-${VERSION}/buildscript 80 90 ssh -oProtocol=$SSH_VERSION ${FQBUILDHOST} \ 81 cp ${BUILD_ROOT}/usr/src/packages/RPMS/${BUILDARCH}/${PACKAGE}-${VERSION}- 0.${BUILDARCH}.rpm ${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER/91 cp ${BUILD_ROOT}/usr/src/packages/RPMS/${BUILDARCH}/${PACKAGE}-${VERSION}-*.${BUILDARCH}.rpm ${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER/ 82 92 83 93 mkdir -p ${DEST_DIR}/src 84 scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/SRPMS/${PACKAGE}-${VERSION}- 0.src.rpm ${DEST_DIR}/src94 scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/SRPMS/${PACKAGE}-${VERSION}-*.src.rpm ${DEST_DIR}/src 85 95 86 96 mkdir -p ${DEST_DIR}/$ARCH/$OS_TYPE/$OS_VER 87 scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/RPMS/${BUILDARCH}/${PACKAGE}-${VERSION}- 0.${BUILDARCH}.rpm ${DEST_DIR}/$ARCH/$OS_TYPE/$OS_VER97 scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/RPMS/${BUILDARCH}/${PACKAGE}-${VERSION}-*.${BUILDARCH}.rpm ${DEST_DIR}/$ARCH/$OS_TYPE/$OS_VER 88 98 89 99 echo "Build of ${PACKAGE} completed!"
Note:
See TracChangeset
for help on using the changeset viewer.