Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:genpatches-misc commit in: scripts/
Date: Thu, 26 Jun 2014 23:59:43
Message-Id: 1403826647.1f0cd2689dfa64e7a8c1b31954c152808046701e.mpagano@gentoo
1 commit: 1f0cd2689dfa64e7a8c1b31954c152808046701e
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 26 23:50:47 2014 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 26 23:50:47 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=1f0cd268
7
8 Initial fixes for git migration. Not yet complete.
9
10 ---
11 scripts/gpdoweb | 43 +++++++++++++++++++++++++++++++++++++++----
12 1 file changed, 39 insertions(+), 4 deletions(-)
13
14 diff --git a/scripts/gpdoweb b/scripts/gpdoweb
15 index d9a8ee6..b6a35f9 100755
16 --- a/scripts/gpdoweb
17 +++ b/scripts/gpdoweb
18 @@ -2,13 +2,48 @@
19
20 . ~/.genpatchesrc
21
22 +# calling make site
23 cd ${WEB_LOCAL}
24 -./makesite.pl
25 +#./makesite.pl
26
27 +# send generated htm files for site
28 rsync --exclude=/trunk --exclude=/tarballs --delete -Cavze ssh \
29 - ${WEB_LOCAL}/output/ ${USERNAME}@${WEB_GENPATCHES_BASE}
30 -rsync --delete -Cavze ssh ${LOCAL_PATCHES_TRUNK}/ ${USERNAME}@${WEB_GENPATCHES_BASE}/trunk
31 + ${WEB_LOCAL}/output/ ${USERNAME}@${WEB_GENPATCHES_BASE}
32 +
33 +# this actually will need to copy the patches to the /trunk directory (that might need to change)
34 +
35 +# delete directory if /tmp/linux-patches exists
36 +
37 +cd ${LOCAL_TMP}
38 +
39 +if [ -d "${LOCAL_TMP}/linux-patches" ]; then
40 + rm -rf "${LOCAL_TMP}/linux-patches"
41 +fi
42 +
43 +
44 +# clone linux-patches
45 +git clone $REMOTE_BASE ${LOCAL_TMP}/linux-patches
46 +
47 +
48 +# get list of branches
49 +
50 +for BRANCH in $(git -C ${LOCAL_TMP}/linux-patches for-each-ref --format='%(refname)' refs/remotes/origin/[0-9].*); do
51 + BRANCH="${BRANCH//*\/}"
52 +
53 + # checkout branch
54 + cd ${LOCAL_TMP}/linux-patches
55 + git -C ${LOCAL_TMP}/linux-patches checkout ${BRANCH}
56 +
57 + # copy patches
58 + rsync --delete -Cavze ssh ${LOCAL_TMP}/linux-patches/ ${USERNAME}@${WEB_GENPATCHES_BASE}/trunk/$BRANCH
59 +done
60 +
61 +# should be easy, copy uploaded files from dev server to tarballs directory locally
62 +echo "rsync -avz ${USERNAME}@dev.gentoo.org:/space/distfiles-local/${KERNEL_NAME}* ${WEB_LOCAL}/tarballs/"
63 rsync -avz ${USERNAME}@dev.gentoo.org:/space/distfiles-local/${KERNEL_NAME}* ${WEB_LOCAL}/tarballs/
64 -rsync -Cavze ssh ${WEB_LOCAL}/tarballs/ ${USERNAME}@${WEB_GENPATCHES_BASE}/tarballs
65
66 +# easy again, copy local tarballs to public_html
67 +rsync -Cavze ssh ${WEB_LOCAL}/tarballs/ ${USERNAME}@${WEB_GENPATCHES_BASE}/tarballs
68
69 +# remove linux-patches
70 +rm -rf ${LOCAL_TMP}/linux-patches