summaryrefslogtreecommitdiffstats
path: root/tools/pharos-validator/rpm/buildasroot.sh
diff options
context:
space:
mode:
authorJack Morgan <jack.morgan@intel.com>2017-09-26 00:10:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-26 00:10:21 +0000
commitf33a03d8f07c2b239322e33a271ef2f1d665313a (patch)
tree7664324153de2ef41fa9cc9f07a26ce6aff6b38d /tools/pharos-validator/rpm/buildasroot.sh
parent25b2adb887b5e1cab767023476dd0ec2f02b4b59 (diff)
parentaeb2791f4d3a5e23090e56c330436205a61629d7 (diff)
Merge "Remove 'tools' Directory"
Diffstat (limited to 'tools/pharos-validator/rpm/buildasroot.sh')
-rwxr-xr-xtools/pharos-validator/rpm/buildasroot.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/pharos-validator/rpm/buildasroot.sh b/tools/pharos-validator/rpm/buildasroot.sh
deleted file mode 100755
index 94076c26..00000000
--- a/tools/pharos-validator/rpm/buildasroot.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /usr/bin/env bash
-# Builds the pharosvalidator package as root (it must be built as root)
-# then copies the finished package to /tmp. The script can either be called
-# as root or with sudo
-
-tarball=pharos-validator-1.tar.gz
-specfile=pharosvalidator.spec
-arch=x86_64
-
-if [ "$(id -u)" != 0 ]; then
- echo "This script must be run as root (or with sudo)"
- exit 1
-fi;
-
-rpmdev-setuptree
-
-cp "$specfile" ~/rpmbuild/SPECS/
-
-# Prepare the "source package" for the rpm build process using .spec file
-pushd ../../
-tar -cvf "$tarball" pharos-validator
-cp "$tarball" ~/rpmbuild/SOURCES
-popd
-
-
-cd ~/rpmbuild/
-
-rpmlint SPECS/"$specfile"
-printf "\n\nRPM BUILD PROCESS\n\n"
-rpmbuild -ba SPECS/"$specfile"
-
-cp -rfv RPMS/"$arch"/* /tmp/