Changeset 951 for dassbuild/trunk/usr/bin
- Timestamp:
- Jun 25, 2011, 7:54:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dassbuild/trunk/usr/bin/dassbuild_prepare.sh
r946 r951 31 31 32 32 [ -z "$BUILD_USES_SVN" ] && BUILD_USES_SVN="yes" 33 [ -z "$BUILD_MODIFIES_SPEC" ] && BUILD_MODIFIES_SPEC="yes" 33 34 34 35 if [ -z "$1" ]; then … … 41 42 PACKAGE=`rpm -qp --qf "%{NAME}" $1` 42 43 VERSION=`rpm -qp --qf "%{VERSION}" $1` 44 unset BUILD_MODIFIES_SPEC 43 45 fi 44 46 … … 154 156 mkdir -p ${BUILDTEMP}/src/${PACKAGE} 155 157 cp -av `cat SPECSOURCES` ${BUILDTEMP}/src/${PACKAGE} 158 159 # do not modify SPEC-file 160 unset BUILD_MODIFIES_SPEC 156 161 157 162 else … … 165 170 166 171 echo $SVN_BUILD_RELEASE 167 if [ "$SVN_BUILD_RELEASE" ]; then 168 # Release will be overwritten bei OpenSUSE build service, 169 # therefore we add SVN_BUILD_RELEASE to Version 170 #sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 171 #sed -r "s/^(Version:\s*\S*)/\1.$SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 172 sed -i "s/^Version:.*/Version: $VERSION/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 173 fi 174 175 if [ "$SOURCE_ARCHIVE" ]; then 176 sed -i "s/^Source:.*/Source: $SOURCE_ARCHIVE/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 172 if [ "$BUILD_MODIFIES_SPEC" = "yes" ]; then 173 if [ "$SVN_BUILD_RELEASE" ]; then 174 # Release will be overwritten bei OpenSUSE build service, 175 # therefore we add SVN_BUILD_RELEASE to Version 176 #sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 177 #sed -r "s/^(Version:\s*\S*)/\1.$SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 178 sed -i "s/^Version:.*/Version: $VERSION/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 179 fi 180 181 if [ "$SOURCE_ARCHIVE" ]; then 182 sed -i "s/^Source:.*/Source: $SOURCE_ARCHIVE/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 183 fi 177 184 fi 178 185
Note:
See TracChangeset
for help on using the changeset viewer.