From 3422dd2ae3cf2c3676846e4300529a5cc9a36191 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 29 Sep 2017 20:17:52 -0300 Subject: Travis: add cache --- makedist | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'makedist') diff --git a/makedist b/makedist index fb41b981..1a16a115 100755 --- a/makedist +++ b/makedist @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e if ! [ "$1" ] then @@ -14,6 +14,9 @@ fi make clean || exit 1 +if [ "$1" != "scm" ] +then + grep -q "\"$1\"" rockspec || { echo echo "version in rockspec is incorrect. Please fix it." @@ -53,6 +56,8 @@ grep -q "vars.VERSION = \"$program_series\"" install.bat || { exit 1 } +fi + out="luarocks-$1" rm -rf "$out" mkdir "$out" -- cgit v1.2.3-55-g6feb