aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com>2011-07-29 19:46:39 +0200
committerKacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com>2011-07-29 19:46:39 +0200
commitee316412805320f3bfbeb1416ebea9eba4f4bb43 (patch)
tree390721aca653faf1c25e725f06190e6ec82c4c73 /scripts
parentMask live version of path64 (diff)
downloadsci-ee316412805320f3bfbeb1416ebea9eba4f4bb43.tar.gz
sci-ee316412805320f3bfbeb1416ebea9eba4f4bb43.tar.bz2
sci-ee316412805320f3bfbeb1416ebea9eba4f4bb43.zip
Add script for generating path64 snapshots
Diffstat (limited to 'scripts')
-rw-r--r--scripts/make_path64_snapshot.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/make_path64_snapshot.sh b/scripts/make_path64_snapshot.sh
new file mode 100644
index 000000000..35924953a
--- /dev/null
+++ b/scripts/make_path64_snapshot.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+clean_git() {
+ for f in $(find ./"$1" -name ".git"); do rm -rf $f; done
+}
+
+TEMP=/dev/shm/path64
+TODAY=$(date -u +%Y%m%d)
+
+[[ -d ${TEMP} ]] && rm -rf ${TEMP}
+mkdir "${TEMP}" && cd "${TEMP}"
+
+git clone git://github.com/pathscale/path64-suite.git path64
+clean_git path64
+ver=$(grep 'SET(PSC_FULL_VERSION' path64/CMakeLists.txt | cut -d'"' -f2)
+tar cjf path64-suite-${ver}_pre${TODAY}.tbz2 path64
+
+[[ -d ${TEMP}/path64/compiler ]] || mkdir -p ${TEMP}/path64/compiler
+cd ${TEMP}/path64/compiler
+
+for f in compiler assembler ; do
+ git clone git://github.com/path64/$f.git
+done
+git clone git://github.com/path64/debugger.git pathdb
+for f in compiler-rt libcxxrt libdwarf-bsd libunwind stdcxx ; do
+ git clone git://github.com/pathscale/$f.git
+done
+
+clean_git
+cd "${TEMP}"
+tar cjf path64-compiler-${ver}_pre${TODAY}.tbz2 \
+ path64/compiler/{compiler,compiler-rt,libcxxrt,libdwarf-bsd,libunwind,stdcxx}
+tar cjf path64-debugger-${ver}_pre${TODAY}.tbz2 \
+ path64/compiler/pathdb
+tar cjf path64-assembler-${ver}_pre${TODAY}.tbz2 \
+ path64/compiler/assembler
+