Code Review
/
ovsnfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixes RPM build problem. Use correct copr repo. Fix some version number parsing
[ovsnfv.git]
/
build
/
build_dpdk_rpm.sh
diff --git
a/build/build_dpdk_rpm.sh
b/build/build_dpdk_rpm.sh
index
a36403d
..
04cf7a1
100755
(executable)
--- a/
build/build_dpdk_rpm.sh
+++ b/
build/build_dpdk_rpm.sh
@@
-87,7
+87,7
@@
echo "---------------------"
echo "Get copr distribution git"
mkdir -p copr
cd copr
echo "Get copr distribution git"
mkdir -p copr
cd copr
-git clone http://copr-dist-git.fedorainfracloud.org/cgit/pmatilai/dpdk/dpdk.git
+git clone http://copr-dist-git.fedorainfracloud.org/cgit/pmatilai/dpdk
-snapshot
/dpdk.git
echo "---------------------"
echo "Build DPDK RPM version $DPDK_VERSION"
echo "---------------------"
echo "Build DPDK RPM version $DPDK_VERSION"
@@
-111,7
+111,7
@@
snapser=`git log --pretty=oneline | wc -l`
makever=`make showversion`
basever=`echo ${makever} | cut -d- -f1`
makever=`make showversion`
basever=`echo ${makever} | cut -d- -f1`
-prefix=dpdk-$basever
+prefix=dpdk-$basever
-${snapser}.git${snapgit}
archive=${prefix}.tar.gz
DPDK_VERSION=$basever
archive=${prefix}.tar.gz
DPDK_VERSION=$basever
@@
-125,6
+125,13
@@
echo building RPM for DPDK version $DPDK_VERSION
echo
rpmbuild -bb --define "_topdir $RPMDIR" dpdk.spec
echo
rpmbuild -bb --define "_topdir $RPMDIR" dpdk.spec
+echo "-------------------------------"
+echo Delete all rpms from $HOME
+echo
+set +e
+rm $HOME/*.rpm
+set -e
+
echo "-------------------------------"
echo Copy dpdk RPM
echo
echo "-------------------------------"
echo Copy dpdk RPM
echo