1 |
commit: 88326fb9c8a25da67709418ca5f328261defce23 |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Mon Nov 24 10:12:14 2014 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 24 10:15:09 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=88326fb9 |
7 |
|
8 |
make the gentoo release script a little more user-agnostic |
9 |
|
10 |
--- |
11 |
gentoo/release-prepare.sh | 11 ++++++----- |
12 |
1 file changed, 6 insertions(+), 5 deletions(-) |
13 |
|
14 |
diff --git a/gentoo/release-prepare.sh b/gentoo/release-prepare.sh |
15 |
index 073ff58..afeed8f 100644 |
16 |
--- a/gentoo/release-prepare.sh |
17 |
+++ b/gentoo/release-prepare.sh |
18 |
@@ -7,7 +7,8 @@ |
19 |
|
20 |
TRANSLATE="s:\(${HARDENEDREFPOL}\|${REFPOLRELEASE}\):refpolicy/:g"; |
21 |
NEWVERSION="${1}"; |
22 |
-REMOTELOCATION="swift@××××××××××.org:public_html/patches/selinux-base-policy"; |
23 |
+# If remote requires a different username, it should be set in ~/.ssh/config |
24 |
+REMOTELOCATION="dev.gentoo.org:/home/swift/public_html/patches/selinux-base-policy"; |
25 |
|
26 |
usage() { |
27 |
echo "Usage: $0 <newversion>"; |
28 |
@@ -20,12 +21,12 @@ usage() { |
29 |
echo "The following environment variables must be declared correctly for the script"; |
30 |
echo "to function properly:"; |
31 |
echo " - GENTOOX86 should point to the gentoo-x86 checkout"; |
32 |
- echo " E.g. export GENTOOX86=\"/home/user/dev/gentoo-x86\""; |
33 |
+ echo " E.g. export GENTOOX86=\"/home/user/dev/gentoo-x86/\""; |
34 |
echo " - HARDENEDREFPOL should point to the hardened-refpolicy.git checkout"; |
35 |
- echo " E.g. export HARDENEDREFPOL=\"/home/user/dev/hardened-refpolicy\""; |
36 |
+ echo " E.g. export HARDENEDREFPOL=\"/home/user/dev/hardened-refpolicy/\""; |
37 |
echo " - REFPOLRELEASE should point to the current latest /release/ of the reference" |
38 |
echo " policy (so NOT to a checkout), extracted somewhere on the file system." |
39 |
- echo " E.g. export REFPOLRELEASE=\"/home/user/local/refpolicy-20130424\""; |
40 |
+ echo " E.g. export REFPOLRELEASE=\"/home/user/local/refpolicy-20130424/\""; |
41 |
} |
42 |
|
43 |
assertDirEnvVar() { |
44 |
@@ -98,7 +99,7 @@ tagRelease() { |
45 |
printf "Creating tag ${NEWVERSION} in our repository... "; |
46 |
cd ${HARDENEDREFPOL}; |
47 |
git tag -a ${NEWVERSION} -m "Release set of ${NEWVERSION}" > /dev/null 2>&1 || die "Failed to create tag"; |
48 |
- git push origin ${NEWVERSION} > /dev/null 2>&1 || die "Faield to push tag to origin repository"; |
49 |
+ git push origin ${NEWVERSION} > /dev/null 2>&1 || die "Failed to push tag to origin repository"; |
50 |
printf "done\n"; |
51 |
}; |