diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-07-20 08:46:10 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-07-20 08:46:10 +0200 |
commit | 6d3b819f70a0df6120bc59f7dc6ff7a347cd0804 (patch) | |
tree | bd9b5c044328dd053d49f329a4c7622ad7a0aee2 /scripts | |
parent | ecb716fcccf5143c1f97d1028a7886b984c1a5cf (diff) | |
download | pki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.tar.gz pki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.tar.xz pki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.zip |
Added base scripts.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/base-build.sh | 19 | ||||
-rwxr-xr-x | scripts/base-install.sh | 9 | ||||
-rwxr-xr-x | scripts/base-remove.sh | 6 | ||||
-rwxr-xr-x | scripts/base-update.sh | 4 |
4 files changed, 38 insertions, 0 deletions
diff --git a/scripts/base-build.sh b/scripts/base-build.sh new file mode 100755 index 0000000..6f6877e --- /dev/null +++ b/scripts/base-build.sh @@ -0,0 +1,19 @@ +#!/bin/sh -x + +PROJECT_DIR=`cd ../.. ; pwd` + +BUILD_DIR=$HOME/build/pki-base +COMPOSE=$PROJECT_DIR/pki/scripts/compose_pki_core_packages + +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +rm -rf rpmbuild +mkdir -p rpmbuild + +$COMPOSE --work-dir $BUILD_DIR/rpmbuild --without-server --without-javadoc hybrid_rpms + +rm -rf repo +mkdir -p repo +mv `find rpmbuild/RPMS -name *.rpm` repo +createrepo repo diff --git a/scripts/base-install.sh b/scripts/base-install.sh new file mode 100755 index 0000000..8716131 --- /dev/null +++ b/scripts/base-install.sh @@ -0,0 +1,9 @@ +#!/bin/sh -x + +PROJECT_DIR=`cd ../.. ; pwd` + +BUILD_DIR=$HOME/build/pki-base + +cd $BUILD_DIR/repo + +yum localinstall -y *.rpm diff --git a/scripts/base-remove.sh b/scripts/base-remove.sh new file mode 100755 index 0000000..90d20c1 --- /dev/null +++ b/scripts/base-remove.sh @@ -0,0 +1,6 @@ +#!/bin/sh -x + +rpm -e --nodeps pki-symkey +rpm -e --nodeps pki-base +rpm -e --nodeps pki-tools +rpm -e --nodeps pki-core-debuginfo diff --git a/scripts/base-update.sh b/scripts/base-update.sh new file mode 100755 index 0000000..d449041 --- /dev/null +++ b/scripts/base-update.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +./base-remove.sh +./base-install.sh |