Changeset 716 for trunk/technical


Ignore:
Timestamp:
Nov 10, 2006, 11:52:10 AM (18 years ago)
Author:
joergs
Message:

bugfix: removed whitespaces from PACKAGE and VERSION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/build.sh

    r715 r716  
    103103        # without parameter, we are in source directory
    104104        SPECFILE=$(ls *.spec | awk '{print $1}')
    105         PACKAGE=$(awk '/^Name:/ {print $2}' <$SPECFILE)
    106         VERSION=$(awk '/^Version:/ {print $2}' <$SPECFILE)
     105        PACKAGE=$(sed -n -e 's/^Name:\W*//pi' <$SPECFILE)
     106        VERSION=$(sed -n -e 's/^Version:\W*//pi' <$SPECFILE)
    107107elif [ -r "$1" ]; then
    108108        # parameter is src.rpm file
     
    163163                fi
    164164                if [ "$SVN_BUILD_RELEASE" ]; then
    165                         sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/g" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
     165                        sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
    166166                fi
    167167                echo "SVN_BUILD_RELEASE: $SVN_BUILD_RELEASE"
Note: See TracChangeset for help on using the changeset viewer.