diff options
author | John Criswell <criswell@uiuc.edu> | 2004-08-06 21:03:59 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-08-06 21:03:59 +0000 |
commit | fb63a35c3cd2ffbbbe227b283f85d85a4fa25282 (patch) | |
tree | e1e167f40de58acf9ab3b23dfa9c13be3bfa68ce | |
parent | 6dbb267760e78d121d7989f8f7d51d024d5061a3 (diff) | |
download | llvm-fb63a35c3cd2ffbbbe227b283f85d85a4fa25282.zip llvm-fb63a35c3cd2ffbbbe227b283f85d85a4fa25282.tar.gz llvm-fb63a35c3cd2ffbbbe227b283f85d85a4fa25282.tar.bz2 |
Created script to help automate part of the release process.
llvm-svn: 15558
-rwxr-xr-x | llvm/utils/mkrel.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/llvm/utils/mkrel.sh b/llvm/utils/mkrel.sh new file mode 100755 index 0000000..d1de19c --- /dev/null +++ b/llvm/utils/mkrel.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +# +# Shell Script: mkrel +# +# Description: +# Make LLVM Release source tarballs by grabbing the source from the CVS +# repository. +# +# Usage: +# mkrel <version> <release tag> <dir> +# + +# +# Constants +# +cvsroot=":pserver:anon@llvm-cvs.cs.uiuc.edu:/var/cvs/llvm" + +# +# Save the command line arguments into some variables. +# +version=$1 +tag=$2 +dir=$3 + +# +# Create the working directory and make it the current directory. +# +mkdir -p $dir +cd $dir + +# +# Extract the LLVM sources given the label. +# +cvs -d $cvsroot export -r $tag llvm llvm-gcc + +# +# Create source tarballs. +# +tar -cvf - llvm | gzip > llvm-${version}.tar.gz +tar -cvf - llvm-gcc | gzip > cfrontend-${version}.source.tar.gz |