Skip to content

Commit fb63a35

Browse files
author
John Criswell
committed
Created script to help automate part of the release process.
llvm-svn: 15558
1 parent 6dbb267 commit fb63a35

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

llvm/utils/mkrel.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/sh
2+
3+
#
4+
# Shell Script: mkrel
5+
#
6+
# Description:
7+
# Make LLVM Release source tarballs by grabbing the source from the CVS
8+
# repository.
9+
#
10+
# Usage:
11+
# mkrel <version> <release tag> <dir>
12+
#
13+
14+
#
15+
# Constants
16+
#
17+
cvsroot=":pserver:[email protected]:/var/cvs/llvm"
18+
19+
#
20+
# Save the command line arguments into some variables.
21+
#
22+
version=$1
23+
tag=$2
24+
dir=$3
25+
26+
#
27+
# Create the working directory and make it the current directory.
28+
#
29+
mkdir -p $dir
30+
cd $dir
31+
32+
#
33+
# Extract the LLVM sources given the label.
34+
#
35+
cvs -d $cvsroot export -r $tag llvm llvm-gcc
36+
37+
#
38+
# Create source tarballs.
39+
#
40+
tar -cvf - llvm | gzip > llvm-${version}.tar.gz
41+
tar -cvf - llvm-gcc | gzip > cfrontend-${version}.source.tar.gz

0 commit comments

Comments
 (0)