From 24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 22 Apr 2014 13:50:42 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs-scala-mode (not maintaining)/watch- | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 emacs-scala-mode (not maintaining)/watch- (limited to 'emacs-scala-mode (not maintaining)/watch-') diff --git a/emacs-scala-mode (not maintaining)/watch- b/emacs-scala-mode (not maintaining)/watch- new file mode 100644 index 0000000..2422906 --- /dev/null +++ b/emacs-scala-mode (not maintaining)/watch- @@ -0,0 +1,19 @@ +#!/bin/sh + +wget http://www.scala-lang.org/downloads -O - 2>/dev/null | grep -Po 'scala-tool-support-.+>' | head -n 2 > release + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'emacs-scala-mode' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'emacs-scala-mode (unfetchable)' +fi + -- cgit v1.2.3-70-g09d2