Changeset 715 for trunk/technical/common
- Timestamp:
- Apr 3, 2006, 3:12:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/technical/common/build/build.sh
r714 r715 105 105 PACKAGE=$(awk '/^Name:/ {print $2}' <$SPECFILE) 106 106 VERSION=$(awk '/^Version:/ {print $2}' <$SPECFILE) 107 el se107 elif [ -r "$1" ]; then 108 108 # parameter is src.rpm file 109 PACKAGE=`echo $1 | sed 's/-[0-9]*\..*.src.rpm//'`110 VERSION=`echo $1 | sed 's/.*-\([0-9]*\..*\)-.*.src.rpm/\1/'`109 PACKAGE=`rpm -qp --qf "%{NAME}" $1` 110 VERSION=`rpm -qp --qf "%{VERSION}" $1` 111 111 fi 112 112 113 113 echo $PACKAGE $VERSION $BUILD_DIST $BUILD_MODE 114 115 if [ -z "$PACKAGE" ]; then 116 echo "nothing to build found!" 117 exit 1 118 fi 119 120 114 121 115 122 rm -rf ${BUILDTEMP}/src/${PACKAGE};
Note:
See TracChangeset
for help on using the changeset viewer.