# HG changeset patch # User Tomas Zeman # Date 1568889768 -7200 # Node ID a6bf3dddbb7ce3b57755ffba9f10b942b55219b4 # Parent 7461111ce9ed3c417e8ec65a96bc0f0fb7c74a19 Mill upgrade -> 0.5.1. Updated project links. diff -r 7461111ce9ed -r a6bf3dddbb7c build.sc --- a/build.sc Thu Mar 14 15:06:13 2019 +0100 +++ b/build.sc Thu Sep 19 12:42:48 2019 +0200 @@ -1,4 +1,4 @@ -// mill 0.3.6 +// mill 0.5.1 import ammonite.ops._ import mill._ @@ -30,10 +30,10 @@ def pomSettings = PomSettings( description = "SPSS reader for Scala", organization = "net.tz", - url = "https://bitbucket.org/tzeman/spss4s", + url = "https://hg.functionals.cz/spss4s", licenses = Seq(License.`Apache-2.0`), versionControl = VersionControl(developerConnection = Some( - "ssh://hg@bitbucket.org/tzeman/spss4s")), + "https://hg.functionals.cz/spss4s")), developers = Seq( Developer("tzeman", "Tomas Zeman", "") ) diff -r 7461111ce9ed -r a6bf3dddbb7c mill --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mill Thu Sep 19 12:42:48 2019 +0200 @@ -0,0 +1,37 @@ +#!/usr/bin/env sh + +# This is a wrapper script, that automatically download mill from GitHub release pages +# You can give the required mill version with MILL_VERSION env variable +# If no version is given, it falls back to the value of DEFAULT_MILL_VERSION +DEFAULT_MILL_VERSION=0.5.1 + +set -e + +if [ -z "$MILL_VERSION" ] ; then + if [ -f ".mill-version" ] ; then + MILL_VERSION="$(head -n 1 .mill-version 2> /dev/null)" + elif [ -f "mill" ] && [ "$BASH_SOURCE" != "mill" ] ; then + MILL_VERSION=$(grep -F "DEFAULT_MILL_VERSION=" "mill" | head -n 1 | cut -d= -f2) + else + MILL_VERSION=$DEFAULT_MILL_VERSION + fi +fi + +MILL_DOWNLOAD_PATH="$HOME/.mill/download" +MILL_EXEC_PATH="${MILL_DOWNLOAD_PATH}/$MILL_VERSION" + +if [ ! -x "$MILL_EXEC_PATH" ] ; then + mkdir -p $MILL_DOWNLOAD_PATH + DOWNLOAD_FILE=$MILL_EXEC_PATH-tmp-download + MILL_DOWNLOAD_URL="https://github.com/lihaoyi/mill/releases/download/${MILL_VERSION%%-*}/$MILL_VERSION-assembly" + curl --fail -L -o "$DOWNLOAD_FILE" "$MILL_DOWNLOAD_URL" + chmod +x "$DOWNLOAD_FILE" + mv "$DOWNLOAD_FILE" "$MILL_EXEC_PATH" + unset DOWNLOAD_FILE + unset MILL_DOWNLOAD_URL +fi + +unset MILL_DOWNLOAD_PATH +unset MILL_VERSION + +exec $MILL_EXEC_PATH "$@"