1 |
commit: a831d3f1499adc4eb04e113fe6a2bf5eef6bd79f |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 8 17:02:26 2019 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 8 17:02:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=a831d3f1 |
7 |
|
8 |
catalyst-auto-sparc64.conf: redo post_build modeled after ppc |
9 |
|
10 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
11 |
|
12 |
tools/catalyst-auto-sparc64.conf | 38 ++++++++++++++++++++++---------------- |
13 |
1 file changed, 22 insertions(+), 16 deletions(-) |
14 |
|
15 |
diff --git a/tools/catalyst-auto-sparc64.conf b/tools/catalyst-auto-sparc64.conf |
16 |
index 570a0566..3a3e5f0e 100644 |
17 |
--- a/tools/catalyst-auto-sparc64.conf |
18 |
+++ b/tools/catalyst-auto-sparc64.conf |
19 |
@@ -46,22 +46,28 @@ update_symlinks() { |
20 |
done |
21 |
} |
22 |
|
23 |
+upload() { |
24 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa' |
25 |
+ -a |
26 |
+ --omit-dir-times |
27 |
+ --delay-updates |
28 |
+ "$@" |
29 |
+ sparc@×××××××××××××××××.org: |
30 |
+} |
31 |
|
32 |
post_build() { |
33 |
- # We only want to do anything on the final (0 argument) post_build call |
34 |
- [ $# -eq 0 ] || return 0 |
35 |
- |
36 |
- mkdir -p ${TMPDIR}/empty |
37 |
- cmd=( |
38 |
- rsync |
39 |
- -e 'ssh -i /root/.ssh/id_rsa' |
40 |
- -a |
41 |
- --omit-dir-times |
42 |
- --delay-updates |
43 |
- ) |
44 |
- "${cmd[@]}" ${TMPDIR}/empty ${DEST} |
45 |
- "${cmd[@]}" \ |
46 |
- ${BUILD_SRCDIR_BASE}/default/stage3-*${DATESTAMP}*${EXTENSIONS}* \ |
47 |
- ${BUILD_SRCDIR_BASE}/default/*${DATESTAMP}*.iso* \ |
48 |
- sparc@×××××××××××××××××.org: |
49 |
+ local set=$1 spec=$2 |
50 |
+ |
51 |
+ pushd "${BUILD_SRCDIR_BASE}/default/" > /dev/null |
52 |
+ |
53 |
+ case ${spec} in |
54 |
+ stage3.spec |
55 |
+ upload stage3-*${DATESTAMP}*${EXTENSIONS}* |
56 |
+ ;; |
57 |
+ installcd-stage2-minimal.spec |
58 |
+ upload *${DATESTAMP}*.iso* |
59 |
+ ;; |
60 |
+ esac |
61 |
+ |
62 |
+ popd > /dev/null |
63 |
} |