perl6: update/add missing Dockerfile. Stats target.
authorJoel Martin <github@martintribe.org>
Fri, 29 Jul 2016 15:48:13 +0000 (10:48 -0500)
committerJoel Martin <github@martintribe.org>
Fri, 29 Jul 2016 15:48:13 +0000 (10:48 -0500)
- Update docker image from rakudo 2016-04 to 2016-07

perl6/Dockerfile [new file with mode: 0644]
perl6/Makefile

diff --git a/perl6/Dockerfile b/perl6/Dockerfile
new file mode 100644 (file)
index 0000000..ea081e8
--- /dev/null
@@ -0,0 +1,34 @@
+FROM ubuntu:vivid
+MAINTAINER Joel Martin <github@martintribe.org>
+
+##########################################################
+# General requirements for testing or common across many
+# implementations
+##########################################################
+
+RUN apt-get -y update
+
+# Required for running tests
+RUN apt-get -y install make python
+
+# Some typical implementation and test requirements
+RUN apt-get -y install curl libreadline-dev libedit-dev
+
+RUN mkdir -p /mal
+WORKDIR /mal
+
+##########################################################
+# Specific implementation requirements
+##########################################################
+
+# Perl6 build deps
+RUN apt-get -y install libfile-copy-recursive-perl build-essential git
+
+RUN curl -O http://rakudo.org/downloads/star/rakudo-star-2016.07.tar.gz && \
+    tar xzf rakudo-star-2016.07.tar.gz && \
+    cd rakudo-star-2016.07 && \
+    perl Configure.pl --prefix=/usr --gen-moar --gen-nqp --backends=moar && \
+    make && \
+    make install && \
+    cd .. && \
+    rm -rf rakudo-star-2016.07*
index 09f99ce..bd88eee 100644 (file)
@@ -1,2 +1,18 @@
+
+SOURCES_BASE = types.pm reader.pm printer.pm
+SOURCES_LISP = env.pm core.pm stepA_mal.pl
+SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
+
 all:
        @true
+
+.PHONY: stats tests $(TESTS)
+
+stats: $(SOURCES)
+       @wc $^
+       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
+stats-lisp: $(SOURCES_LISP)
+       @wc $^
+       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
+
+