Changeset 739
- Timestamp:
- May 26, 2009, 1:34:34 PM (16 years ago)
- Location:
- trunk/dassbuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dassbuild/svn_build_prepare.sh
r736 r739 11 11 12 12 # TODO: 13 # needs force parameter for tar. bz2creation13 # needs force parameter for tar.gz creation 14 14 15 15 … … 125 125 if [ -r "SOURCES" ]; then 126 126 # create a tar file from the sources 127 printf "creating $PACKAGE-$VERSION.tar.bz2: " 128 129 if [ "$REBUILD" -o ! -r ${BUILDTEMP}/src/${PACKAGE}/$PACKAGE-$VERSION.tar.bz2 ]; then 127 SOURCE_ARCHIVE="$PACKAGE-$VERSION.orig.tar.gz" 128 printf "creating $SOURCE_ARCHIVE: " 129 130 if [ "$REBUILD" -o ! -r ${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE ]; then 130 131 rm -rf ${BUILDTEMP}/src/${PACKAGE} 131 132 mkdir -p ${BUILDTEMP}/src/${PACKAGE} 132 tar cv jf ${BUILDTEMP}/src/${PACKAGE}/$PACKAGE-$VERSION.tar.bz2--files-from SOURCES --exclude .svn --exclude "*~"133 tar cvzf ${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE --files-from SOURCES --exclude .svn --exclude "*~" 133 134 else 134 135 printf "already exists. Skipped\n" 135 exit 1 136 printf " (${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE)\n" 137 # exit, but without error, so that the calling script will continue 138 exit 0 136 139 fi 137 140 elif [ -r "SPECSOURCES" ]; then -
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.