forked from edwinb/Idris2-boot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkdist.sh
executable file
·30 lines (26 loc) · 970 Bytes
/
mkdist.sh
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
#!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: ./mkdist.sh [version]"
exit 1
fi
mkdir -p idris2-$1
# Copy the source, but without build artefacts
rsync -avm --include='*.idr' -f 'hide,! */' src idris2-$1
rsync -avm --include-from='srcfiles' -f 'hide,! */' libs idris2-$1
rsync -avm --include-from='srcfiles' -f 'hide,! */' samples idris2-$1
rsync -avm --include-from='srcfiles' -f 'hide,! */' docs idris2-$1
rsync -avm --include-from='srcfiles' -f 'hide,! */' tests idris2-$1
# Copy run time support for Idris 1
rsync -avm --include-from='srcfiles' -f 'hide,! */' dist idris2-$1
# Copy run time support for Idris 2
cp -r support idris2-$1/support
# Copy top level files and docs
cp *.md CONTRIBUTORS config.mk Makefile LICENSE *.ipkg idris2-$1
tar zcvf idris2-$1.tgz idris2-$1
shasum -a 256 idris2-$1.tgz > idris2-$1.tgz.sha256
echo "Did you remember to:"
echo "\tmake clean?"
echo "\tmake dist/idris2.c?"
echo "\ttag the release?"
echo "\tset the -O2 flag?"