commit:     9cc2fb85e7f5aa934cb6b7d7ac564bdf5486b4b2
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat Aug  9 19:23:51 2014 +0000
Commit:     Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Sat Aug  9 19:23:51 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9cc2fb85

Add trailing slash for substitution, and set KEYWORDS when copying from live 
ebuilds to "regular" ones

---
 gentoo/release-prepare.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gentoo/release-prepare.sh b/gentoo/release-prepare.sh
index c80fbc2..5d578d6 100644
--- a/gentoo/release-prepare.sh
+++ b/gentoo/release-prepare.sh
@@ -5,7 +5,7 @@
 
 # Prepare new policy release
 
-TRANSLATE="s:\(${HARDENEDREFPOL}\|${REFPOLRELEASE}\):refpolicy:g";
+TRANSLATE="s:\(${HARDENEDREFPOL}\|${REFPOLRELEASE}\):refpolicy/:g";
 NEWVERSION="${1}";
 REMOTELOCATION="[email protected]:public_html/patches/selinux-base-policy";
 
@@ -88,6 +88,7 @@ createEbuilds() {
   do
     [[ -f "${PKG}/${PKG}-9999.ebuild" ]] || continue;
     cp ${PKG}/${PKG}-9999.ebuild ${PKG}/${PKG}-${NEWVERSION}.ebuild;
+    sed -i -e 's:^KEYWORDS="":KEYWORDS="~amd64 ~x86":g' 
${PKG}/${PKG}-${NEWVERSION}.ebuild;
   done
   printf "done\n";
 }
@@ -101,7 +102,7 @@ tagRelease() {
   printf "done\n";
 };
 
-if [ $# -ne 2 ];
+if [ $# -ne 1 ];
 then
   usage;
   exit 3;

Reply via email to