From 2c8b21fa6ff0f8dc3c9479db00058ff8132ba155 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 20 Jul 2017 08:38:49 +0200 Subject: Updated theme scripts. --- scripts/theme-build.sh | 2 +- scripts/theme-compare.sh | 6 ++++++ scripts/theme-download.sh | 4 ++-- scripts/theme-publish.sh | 10 ++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 scripts/theme-compare.sh create mode 100755 scripts/theme-publish.sh (limited to 'scripts') diff --git a/scripts/theme-build.sh b/scripts/theme-build.sh index 393d493..972ce61 100755 --- a/scripts/theme-build.sh +++ b/scripts/theme-build.sh @@ -11,7 +11,7 @@ cd $BUILD_DIR rm -rf rpmbuild mkdir -p rpmbuild -$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms 2>&1 | tee build.log +$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms rm -rf repo mkdir -p repo diff --git a/scripts/theme-compare.sh b/scripts/theme-compare.sh new file mode 100755 index 0000000..fe8164b --- /dev/null +++ b/scripts/theme-compare.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +old=$1 +new=/usr/share/java/pki + +./jar-compare.sh pki-console-theme.jar $old $new diff --git a/scripts/theme-download.sh b/scripts/theme-download.sh index 76fe539..f86dc80 100755 --- a/scripts/theme-download.sh +++ b/scripts/theme-download.sh @@ -4,9 +4,9 @@ cd ~/Downloads BASE_URL=http://kojipkgs.fedoraproject.org/packages PACKAGE=dogtag-pki-theme -VERSION=10.2.0 +VERSION=10.3.5 RELEASE=1 -OS=fc21 +OS=fc24 wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-console-theme-$VERSION-$RELEASE.$OS.noarch.rpm wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-server-theme-$VERSION-$RELEASE.$OS.noarch.rpm diff --git a/scripts/theme-publish.sh b/scripts/theme-publish.sh new file mode 100755 index 0000000..13125fb --- /dev/null +++ b/scripts/theme-publish.sh @@ -0,0 +1,10 @@ +#!/bin/sh -x + +BUILD_DIR=$HOME/build/pki-theme +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +REPO_DIR=/var/www/html/pub/fedora/linux/releases/20/Everything/x86_64/os +mkdir -p $REPO_DIR +cp repo/*.rpm $REPO_DIR +createrepo $REPO_DIR -- cgit