mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 06:13:26 +03:00
bd94b91615
Since Travis CI is no longer used.
32 lines
542 B
Bash
32 lines
542 B
Bash
#!/bin/sh
|
|
|
|
IDRIS2_DIR=Idris2-"$1"
|
|
|
|
set -e
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "No version number supplied"
|
|
exit 1
|
|
fi
|
|
|
|
git clone https://github.com/idris-lang/Idris2.git
|
|
mv Idris2 "$IDRIS2_DIR"
|
|
cd "$IDRIS2_DIR"
|
|
|
|
# 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 -rf Release
|
|
rm -rf benchmark
|
|
find . -type f -name '.gitignore' -exec rm -f {} \;
|
|
|
|
cd ..
|
|
|
|
tar zcf idris2-"$1".tgz "$IDRIS2_DIR"
|
|
|
|
echo "idris2-$1.tgz created."
|