From 9b3371e36854f5a493fcc39a6cc031231aead86e Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 8 May 2013 13:05:11 -0400 Subject: [PATCH] add snapshot scripts --- make-clang-snapshot.sh | 18 ++++++++++++++++++ make-compiler-rt-snapshot.sh | 18 ++++++++++++++++++ make-llvm-snapshot.sh | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100755 make-clang-snapshot.sh create mode 100755 make-compiler-rt-snapshot.sh create mode 100755 make-llvm-snapshot.sh diff --git a/make-clang-snapshot.sh b/make-clang-snapshot.sh new file mode 100755 index 0000000..8414d83 --- /dev/null +++ b/make-clang-snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +DIRNAME=clang-$( date +%Y%m%d ) +URL=http://llvm.org/git/clang.git + +rm -rf $DIRNAME +git clone $URL $DIRNAME +cd $DIRNAME +if [ -z "$1" ]; then + git log | head -1 +else + git checkout $1 +fi +git log | head -1 | awk '{ print $2 }' > ../commitid +rm -rf .git +cd .. +tar cf - $DIRNAME | xz -c9 > $DIRNAME.tar.xz +rm -rf $DIRNAME diff --git a/make-compiler-rt-snapshot.sh b/make-compiler-rt-snapshot.sh new file mode 100755 index 0000000..0ae2a16 --- /dev/null +++ b/make-compiler-rt-snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +DIRNAME=compiler-rt-$( date +%Y%m%d ) +URL=http://llvm.org/git/compiler-rt.git + +rm -rf $DIRNAME +git clone $URL $DIRNAME +cd $DIRNAME +if [ -z "$1" ]; then + git log | head -1 +else + git checkout $1 +fi +git log | head -1 | awk '{ print $2 }' > ../commitid +rm -rf .git +cd .. +tar cf - $DIRNAME | xz -c9 > $DIRNAME.tar.xz +rm -rf $DIRNAME diff --git a/make-llvm-snapshot.sh b/make-llvm-snapshot.sh new file mode 100755 index 0000000..308ca7b --- /dev/null +++ b/make-llvm-snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +DIRNAME=llvm-$( date +%Y%m%d ) +URL=http://llvm.org/git/llvm.git + +rm -rf $DIRNAME +git clone $URL $DIRNAME +cd $DIRNAME +if [ -z "$1" ]; then + git log | head -1 +else + git checkout $1 +fi +git log | head -1 | awk '{ print $2 }' > ../commitid +rm -rf .git +cd .. +tar cf - $DIRNAME | xz -c9 > $DIRNAME.tar.xz +rm -rf $DIRNAME