-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmake-dist
executable file
·61 lines (47 loc) · 1.23 KB
/
make-dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env bash
set -eu
if [ -z "$1" ]; then
echo "invoke make-dist with a version argument."
echo "For example: ./make-dist 0.3.1-rc1"
exit 1
fi
if [ ! -d grammars ] || [ ! -d tutorials ]; then
echo "Wrong directory? Run as ./make-dist <version>"
exit 1
fi
SV=silver-$1
if [[ -a $SV || -a $SV.tar.gz ]]; then
echo "error: $SV already exists?"
exit 1
fi
ln -s . $SV
tar -zcvf $SV.tar.gz \
"--exclude=*.test" \
$SV/generated/whatisthis.txt \
$SV/jars/*.jar \
$SV/support/bin \
$SV/support/emacs \
$SV/support/vim \
$SV/support/gedit \
$SV/support/nailgun \
$SV/support/vs-code/silverlsp/*.vsix \
$SV/tutorials/ \
$SV/grammars/silver/core/ \
$SV/grammars/silver/xml/ \
$SV/grammars/silver/regex/ \
$SV/grammars/silver/rewrite/ \
$SV/grammars/silver/testing/ \
$SV/grammars/silver/util/cmdargs/ \
$SV/grammars/silver/util/deque/ \
$SV/grammars/silver/util/treemap/ \
$SV/grammars/silver/util/treeset/ \
$SV/grammars/silver/util/graph/ \
$SV/grammars/silver/util/subprocess/ \
$SV/grammars/silver/util/random/ \
$SV/grammars/silver/langutil/ \
$SV/grammars/silver/reflect/ \
$SV/COPYING.LESSER \
$SV/HISTORY \
$SV/README.md \
# Make sure to leave empty lines above, so the trailing \ is okay.
rm $SV