Changeset 809
- Timestamp:
- Dec 14, 2009, 6:04:47 PM (16 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  dassbuild/trunk/usr/bin/dassbuild.sh (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      dassbuild/trunk/usr/bin/dassbuild.shr808 r809 100 100 # without parameter, we are in source directory 101 101 SPECFILE=$(ls *.spec | awk '{print $1}') 102 PACKAGE=$(sed -n -e 's/^Name:\W*//pi' <$SPECFILE )102 PACKAGE=$(sed -n -e 's/^Name:\W*//pi' <$SPECFILE | head -n 1) 103 103 # use Version from BUILDSRC, 104 104 # because it has been modified by svn_build_prepare 105 105 BUILDSRC_DIR=${BUILDTEMP}/src/${PACKAGE} 106 VERSION=$(sed -n -e 's/^Version:\W*//pi' <$BUILDSRC_DIR/$SPECFILE )106 VERSION=$(sed -n -e 's/^Version:\W*//pi' <$BUILDSRC_DIR/$SPECFILE | head -n 1) 107 107 elif [ -r "$1" ]; then 108 108 # parameter is src.rpm file … … 157 157 # fi 158 158 159 # debug 160 #set -x 161 159 162 # check, if RPM with correct name and version is generated 160 163 if [ -z "`find ${BUILD_ROOT}/usr/src/packages/RPMS/ -name \"${PACKAGE}*${VERSION}-*.rpm\" 2>/dev/null`" ]; then … … 178 181 if [ $ERROR -ne 0 ]; then 179 182 180 echo "ERROR while building packet $PACKAGE";183 echo "ERROR $ERROR while building packet $PACKAGE"; 181 184 else 182 185 echo "Build of \"${PACKAGE}\" completed!" 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
