mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-11 02:01:36 +03:00
a76a1322eb
Written by Volkmar Frinken (@vfrinken). This is intended as a lightweight (i.e. minimal dependencies) code generator that can be ported to multiple platforms, especially those with memory constraints. It shouldn't be expected to be anywhere near as fast as the Scheme back end, for lots of reasons. The main goal is portability.
29 lines
493 B
Bash
29 lines
493 B
Bash
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
echo "No version number supplied"
|
|
exit 1
|
|
fi
|
|
|
|
git clone https://github.com/idris-lang/Idris2.git
|
|
mv Idris2 Idris2-$1
|
|
cd Idris2-$1
|
|
|
|
# Go to the tag for the release we're making
|
|
git checkout tags/v$1
|
|
|
|
# Remove the directories and files we don't want in the release
|
|
rm -rf .git
|
|
rm -rf .github
|
|
rm .git*
|
|
rm -f .travis*
|
|
rm -rf Release
|
|
find . -type f -name '.gitignore' -exec rm -f {} \;
|
|
|
|
cd ..
|
|
|
|
tar zcf idris2-$1.tgz Idris2-$1
|
|
|
|
echo "idris2-$1.tgz created."
|