add snapshot scripts

This commit is contained in:
Adam Jackson 2013-05-08 13:05:11 -04:00
parent 94fba1fe65
commit 9b3371e368
3 changed files with 54 additions and 0 deletions

18
make-clang-snapshot.sh Executable file
View File

@ -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

18
make-compiler-rt-snapshot.sh Executable file
View File

@ -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

18
make-llvm-snapshot.sh Executable file
View File

@ -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