Changeset 721
- Timestamp:
- Oct 2, 2008, 5:16:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/svn_build_prepare.sh
r720 r721 9 9 BUILDTEMP=$DEST_DIR/buildsrc/ 10 10 11 [ -z "$BUILD_USES_SVN" ] && BUILD_USES_SVN="yes" 11 12 12 13 if [ -z "$1" ]; then … … 17 18 elif [ -r "$1" ]; then 18 19 # parameter is src.rpm file 19 20 20 PACKAGE=`rpm -qp --qf "%{NAME}" $1` 21 VERSION=`rpm -qp --qf "%{VERSION}" $1` 21 22 fi 22 23 … … 61 62 SVN_BUILD_RELEASE=${SVN_BUILD_RELEASE}p 62 63 else # check if RPM has been build already 64 # TODO: this chekc is broken for OpenSUSE build service, 65 # because version is changed later on 63 66 EXPECTED_DEST_RPM_FILENAME=${DEST_DIR}/${BUILD_DIST}/${PACKAGE}-${VERSION}-${SVN_BUILD_RELEASE}.*.rpm 64 67 if [ -f $EXPECTED_DEST_RPM_FILENAME ]; then … … 70 73 fi 71 74 if [ "$SVN_BUILD_RELEASE" ]; then 72 sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 75 # Release will be overwritten bei OpenSUSE build service, 76 # therefore we add SVN_BUILD_RELEASE to Version 77 VERSION_ORIG=$VERSION 78 VERSION=$VERSION.$SVN_BUILD_RELEASE 79 #sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 80 #sed -r "s/^(Version:\s*\S*)/\1.$SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 81 sed "s/^Version:.*/Version: $VERSION/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 73 82 fi 74 83 echo "SVN_BUILD_RELEASE: $SVN_BUILD_RELEASE" 75 84 85 printf "adding subversion changelog: " 76 86 # changelog header 77 87 DATE=`unset LANG; date +"%a %b %d %Y"` … … 95 105 cat Changes | sed 's/\(^[\*]\+\)//g' >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 96 106 fi 107 printf "done\n" 97 108 fi 98 109 # just make sure, that the Changes file exist
Note:
See TracChangeset
for help on using the changeset viewer.