Changeset 739 for trunk/dassbuild/svn_osc_build.sh
- Timestamp:
- May 26, 2009, 1:34:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dassbuild/svn_osc_build.sh
r725 r739 10 10 # 11 11 12 # environment variables: 13 # OSBS_PROJECT (e.g. home:dassit) or config file "OSC_PACKAGE" (e.g. home:dassit/dasscm) 14 15 12 16 [ -z "$BUILD_USES_SVN" ] && BUILD_USES_SVN="yes" 13 17 … … 16 20 BUILDTEMP=$DEST_DIR/buildsrc/ 17 21 18 if [ ! -r OSC_PACKAGE ]; then 19 echo "failed to read config file OSC_PACKAGE" 20 exit 1 22 if [ -r OSC_LOCAL ]; then 23 LOCAL_BUILD="yes" 21 24 fi 22 25 23 OSC_PACKAGE=`cat OSC_PACKAGE`24 26 25 27 svn_build_prepare.sh $* … … 58 60 echo "Version: $VERSION" 59 61 62 # 63 # get the openSUSE build service project 64 # check for file "OSC_PACKAGE" first, 65 # if it is not found, use the variable OSBC_PROJECT 66 # 67 if [ -r OSC_PACKAGE ]; then 68 OSC_PACKAGE=`cat OSC_PACKAGE` 69 elif [ "$OSBS_PROJECT" ]; then 70 OSC_PACKAGE="$OSBS_PROJECT/$PACKAGE" 71 else 72 OSC_PACKAGE="home:$BUILDUSER/$PACKAGE" 73 fi 74 75 # remove double slashes (/) 76 OSC_PACKAGE=`sed 's|/[/]*|/|g' <<< $OSC_PACKAGE` 77 60 78 osc co $OSC_PACKAGE || { 61 # error message already from osc 79 echo 80 echo 'An existing "openSUSE Build Service" project must be specified.' 81 echo 'To specify it, use the config file OSC_PACKAGE or the environment variable OSBS_PROJECT' 62 82 exit 1 63 83 } … … 66 86 #cp -av $BUILDSRC_DIR/* $OSC_PACKAGE/. 67 87 68 cd $OSC_PACKAGE 88 cd $OSC_PACKAGE || exit 1 69 89 # rsync -a: -rlptgoD 70 90 # but we don't want to check for timestamps … … 73 93 rsync --checksum -r -v --delete $BUILDSRC_DIR/. . --exclude .osc 74 94 75 # osc build DIST ARCH 76 #osc add $FILELIST 77 osc addremove 78 osc commit -m "release $VERSION" 95 if [ "$LOCAL_BUILD" ]; then 96 echo 'skipped. Use 97 # local build: 98 # osc repos | while read DIST ARCH; do osc build --no-verify $DIST $ARCH; done 99 # ' 100 else 101 osc addremove 102 osc commit -m "release $VERSION" 103 fi 104
Note:
See TracChangeset
for help on using the changeset viewer.