Changeset 586


Ignore:
Timestamp:
Sep 2, 2002, 4:41:47 PM (22 years ago)
Author:
pstorz
Message:

Anpassungen um auch die source-rpms nutzen zu können:

  • .dif und .init Dateien werden mit auf Wotan kopiert
  • tar.gz und tar.bz2 werden nun unterstuetzt
  • -0 Version auf -* gesetzt, damit die srpms, deren Version automatisch hochgezählt wird, beim zurückkopieren auch gefunden werden.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/build.sh

    r585 r586  
    11#!/bin/bash
    22# Remote build script (iboernig@suse.de)
    3 # $Id: build.sh,v 1.2 2002/08/29 15:06:49 stephand Exp $
     3# $Id: build.sh,v 1.3 2002/09/02 14:41:47 pstorz Exp $
    44#
    55# Kurze Featuritis:
     
    3434[ -z "$BUILD_DIST" ] && BUILD_DIST="${OS_TYPE}${OS_VER}-$ARCH"
    3535[ -z "$BUILD_ROOT" ] && BUILD_ROOT="/abuild/buildsystem.$BUILDHOST.$USER.$BUILD_DIST.smartclient"
     36[ -z "$BUILD_PREPARE_SPEC" ] && BUILD_PREPARE_SPEC="no"
    3637
    3738[ -z $DEST_DIR ] && DEST_DIR="/tmp/smartclient_build"
     
    4142
    4243SPECFILE=$(ls *.spec | awk '{print $1}')
    43 TARFILE=$(ls *.tar.gz | awk '{print $1}')
     44TARFILE=$(ls  *.tar.[gb]z*| awk '{print $1}')
     45DIFFILES=$(ls *.dif | awk '{print $1}')
     46
     47# sonstige files die gebraucht werden
     48RESTFILES=$(ls *.init | awk '{print $1}') # fuer srpm inetd
    4449
    4550PACKAGE=$(awk '/^Name:/ {print $2}' <$SPECFILE)
     
    5661                        mkdir -p ${BUILDTEMP}/${ARCH}/${OS_TYPE}/${OS_VER}"
    5762
    58 scp -oProtocol=$SSH_VERSION $TARFILE $SPECFILE ${FQBUILDHOST}:${BUILDTEMP}/src/${PACKAGE}-${VERSION}
     63scp -oProtocol=$SSH_VERSION $TARFILE $SPECFILE $DIFFILES $RESTFILES ${FQBUILDHOST}:${BUILDTEMP}/src/${PACKAGE}-${VERSION}
    5964
    6065# create buildscript
     
    6671export BUILD_ROOT=$BUILD_ROOT
    6772export BUILD_DIST=$BUILD_DIST
     73export BUILD_PREPARE_SPEC=$BUILD_PREPARE_SPEC
     74
     75echo "BUILD_PREPARE_SPEC ist $BUILD_PREPARE_SPEC";
     76
     77
    6878cd ~${BUILDUSER}/${BUILDTEMP}/src/${PACKAGE}-${VERSION}
    69 build $BUILD_MODE       --prefer-rpms ~${BUILDUSER}/${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER
     79build $BUILD_MODE       --prefer-rpms ~${BUILDUSER}/${BUILDTEMP}/$ARCH/$OS_TYPE/$OS_VER
    7080EOF
    7181
     
    7989        . ~$BUILDUSER/${BUILDTEMP}/src/${PACKAGE}-${VERSION}/buildscript
    8090ssh -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/
    8292
    8393mkdir -p ${DEST_DIR}/src
    84 scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/SRPMS/${PACKAGE}-${VERSION}-0.src.rpm ${DEST_DIR}/src
     94scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/SRPMS/${PACKAGE}-${VERSION}-*.src.rpm ${DEST_DIR}/src
    8595
    8696mkdir -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_VER
     97scp -oProtocol=$SSH_VERSION root@${FQBUILDHOST}:${BUILD_ROOT}/usr/src/packages/RPMS/${BUILDARCH}/${PACKAGE}-${VERSION}-*.${BUILDARCH}.rpm ${DEST_DIR}/$ARCH/$OS_TYPE/$OS_VER
    8898
    8999echo "Build of ${PACKAGE} completed!"
Note: See TracChangeset for help on using the changeset viewer.