Changeset 716 for trunk/technical/common/build
- Timestamp:
- Nov 10, 2006, 11:52:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/build.sh
r715 r716 103 103 # without parameter, we are in source directory 104 104 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) 107 107 elif [ -r "$1" ]; then 108 108 # parameter is src.rpm file … … 163 163 fi 164 164 if [ "$SVN_BUILD_RELEASE" ]; then 165 sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ g" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE165 sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE 166 166 fi 167 167 echo "SVN_BUILD_RELEASE: $SVN_BUILD_RELEASE"
Note:
See TracChangeset
for help on using the changeset viewer.