Changeset 808 for dassbuild/trunk/usr
- Timestamp:
- Dec 14, 2009, 2:45:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dassbuild/trunk/usr/bin/dassbuild.sh
r762 r808 152 152 153 153 mkdir -p ${DEST_DIR}/${BUILD_DIST} 154 # delete all old versions of this package155 for i in ${DEST_DIR}/${BUILD_DIST}/${PACKAGE}-*.rpm; do156 if [ -f $i -a ${PACKAGE} = "`rpm -qp --qf "%{NAME}\n" $i`" ]; then157 rm $i158 fi159 done160 154 161 if !(cp -a ${BUILD_ROOT}/usr/src/packages/RPMS/*/${PACKAGE}*${VERSION}-*.*.rpm ${DEST_DIR}/${BUILD_DIST} ); then 162 ERROR=8 155 # if !(cp -a ${BUILD_ROOT}/usr/src/packages/RPMS/*/${PACKAGE}*${VERSION}-*.*.rpm ${DEST_DIR}/${BUILD_DIST} ); then 156 # ERROR=8 157 # fi 158 159 # check, if RPM with correct name and version is generated 160 if [ -z "`find ${BUILD_ROOT}/usr/src/packages/RPMS/ -name \"${PACKAGE}*${VERSION}-*.rpm\" 2>/dev/null`" ]; then 161 ERROR=8 162 else 163 # delete all old versions of this package 164 for i in ${DEST_DIR}/${BUILD_DIST}/${PACKAGE}-*.rpm; do 165 if [ -f $i -a ${PACKAGE} = "`rpm -qp --qf "%{NAME}\n" $i`" ]; then 166 rm $i 167 fi 168 done 169 170 # copy ALL RPMs, 171 # not only the one, that includes the target name. 172 # this is done, 173 # because some source RPMs results the multiple RPMs 174 find ${BUILD_ROOT}/usr/src/packages/RPMS/ -name "*.rpm" -exec cp -a {} ${DEST_DIR}/${BUILD_DIST} \; 163 175 fi 164 176
Note:
See TracChangeset
for help on using the changeset viewer.