Changeset 946 for dassbuild/trunk/usr
- Timestamp:
- Jun 17, 2011, 12:15:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dassbuild/trunk/usr/bin/dassbuild_prepare.sh
r762 r946 112 112 printf "adding subversion changelog: " 113 113 # changelog header 114 DATE=`unset LANG; date +"%a %b %d %Y"` 115 echo -e "* $DATE - svn_build\n" > Changes 114 echo "-------------------------------------------------------------------" > Changes 115 DATE=`unset LANG; date +"%a %b %d %T UTC %Y"` 116 echo -e "$DATE - svn_build@localhost\n" >> Changes 116 117 echo "- Subversion status:" >> Changes 117 118 # additional infos for the Changes file (see if everything is checked in) … … 121 122 # requires connection to the subversion server 122 123 svn log -v . > ChangeLog.new && mv ChangeLog.new ChangeLog 123 cat ChangeLog >> Changes 124 124 # indent all svn revisions by "- ", to form a changelog entry, 125 # changelog format uses * at the start of the line to determine new entry, 126 # therefore replace our * by - 127 # % may be treated as a macro, there replaced by %% 128 sed -r -e 's/^(r[0-9]+ \|)/- \1/' -e 's/(^[\*]+)/-/g' -e 's/%/%%/g' ChangeLog >> Changes 129 mv Changes $PACKAGE.changes 125 130 printf "done\n" 126 131 fi 127 128 # just make sure, that the Changes file exists129 touch Changes130 132 131 133 # if "SOURCES" file exist, create tar file on the fly … … 159 161 160 162 # copy orig SPEC-file (may be modified later) 161 cp -a $SPECFILE ${BUILDTEMP}/src/${PACKAGE} 163 cp -a $SPECFILE ${BUILDTEMP}/src/${PACKAGE}/ 164 test -r ${PACKAGE}.changes && cp -a ${PACKAGE}.changes ${BUILDTEMP}/src/${PACKAGE}/ 162 165 163 166 echo $SVN_BUILD_RELEASE … … 176 179 # if there is no changelog section in the spec file, 177 180 # also append the Changes there 178 if ! grep -q -i "%changelog" $SPECFILE ; then179 # paste "Changes" into SPEC file.180 echo "%changelog" >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE181 # without trailing *, except for the initial182 echo -n "*" >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE183 cat Changes | sed 's/\(^[\*]\+\)//g' >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE184 fi181 # if ! grep -q -i "%changelog" $SPECFILE ; then 182 # # paste "Changes" into SPEC file. 183 # echo "%changelog" >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 184 # # without trailing *, except for the initial 185 # echo -n "*" >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 186 # cat Changes | sed 's/\(^[\*]\+\)//g' >> ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 187 # fi 185 188 186 189 # if there is a directory named "debian", prepare the … … 213 216 fi 214 217 215 216 218 fi 217 219 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.