Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: scripts/
Date: Fri, 29 Jul 2011 17:47:00
Message-Id: ee316412805320f3bfbeb1416ebea9eba4f4bb43.xarthisius@gentoo
1 commit: ee316412805320f3bfbeb1416ebea9eba4f4bb43
2 Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 29 17:46:39 2011 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 17:46:39 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ee316412
7
8 Add script for generating path64 snapshots
9
10 ---
11 scripts/make_path64_snapshot.sh | 37 +++++++++++++++++++++++++++++++++++++
12 1 files changed, 37 insertions(+), 0 deletions(-)
13
14 diff --git a/scripts/make_path64_snapshot.sh b/scripts/make_path64_snapshot.sh
15 new file mode 100644
16 index 0000000..3592495
17 --- /dev/null
18 +++ b/scripts/make_path64_snapshot.sh
19 @@ -0,0 +1,37 @@
20 +#!/bin/bash
21 +
22 +clean_git() {
23 + for f in $(find ./"$1" -name ".git"); do rm -rf $f; done
24 +}
25 +
26 +TEMP=/dev/shm/path64
27 +TODAY=$(date -u +%Y%m%d)
28 +
29 +[[ -d ${TEMP} ]] && rm -rf ${TEMP}
30 +mkdir "${TEMP}" && cd "${TEMP}"
31 +
32 +git clone git://github.com/pathscale/path64-suite.git path64
33 +clean_git path64
34 +ver=$(grep 'SET(PSC_FULL_VERSION' path64/CMakeLists.txt | cut -d'"' -f2)
35 +tar cjf path64-suite-${ver}_pre${TODAY}.tbz2 path64
36 +
37 +[[ -d ${TEMP}/path64/compiler ]] || mkdir -p ${TEMP}/path64/compiler
38 +cd ${TEMP}/path64/compiler
39 +
40 +for f in compiler assembler ; do
41 + git clone git://github.com/path64/$f.git
42 +done
43 +git clone git://github.com/path64/debugger.git pathdb
44 +for f in compiler-rt libcxxrt libdwarf-bsd libunwind stdcxx ; do
45 + git clone git://github.com/pathscale/$f.git
46 +done
47 +
48 +clean_git
49 +cd "${TEMP}"
50 +tar cjf path64-compiler-${ver}_pre${TODAY}.tbz2 \
51 + path64/compiler/{compiler,compiler-rt,libcxxrt,libdwarf-bsd,libunwind,stdcxx}
52 +tar cjf path64-debugger-${ver}_pre${TODAY}.tbz2 \
53 + path64/compiler/pathdb
54 +tar cjf path64-assembler-${ver}_pre${TODAY}.tbz2 \
55 + path64/compiler/assembler
56 +