tstellar / rpms / llvm

Forked from rpms/llvm 2 years ago
Clone
9b3371
#!/bin/sh
9b3371
9b3371
DIRNAME=compiler-rt-$( date +%Y%m%d )
9b3371
URL=http://llvm.org/git/compiler-rt.git
9b3371
9b3371
rm -rf $DIRNAME
9b3371
git clone $URL $DIRNAME
9b3371
cd $DIRNAME
9b3371
if [ -z "$1" ]; then
9b3371
    git log | head -1
9b3371
else
9b3371
    git checkout $1
9b3371
fi
9b3371
git log | head -1 | awk '{ print $2 }' > ../commitid
9b3371
rm -rf .git
9b3371
cd ..
9b3371
tar cf - $DIRNAME | xz -c9 > $DIRNAME.tar.xz
9b3371
rm -rf $DIRNAME