git » jacl.git » commit 8153d88

Makefile and license

author Alan Dipert
2020-04-17 16:06:06 UTC
committer Alan Dipert
2020-04-17 16:06:06 UTC
parent dbdca9a78b2db44e34c96ca8d9dc0901bd7b03ab

Makefile and license

Makefile +24 -2
jacl-client.R +21 -0
jacl-tests.lisp +21 -0
jacl.js +21 -0

diff --git a/Makefile b/Makefile
index 0c6d8eb..aa33cb4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,25 @@
-.PHONY: all clean
+.PHONY: all deploy clean
 
 SHELL := /bin/bash
+
+# jacl-dist.zip
 DIST_FILES := RUN.md jacl.html boot.lisp jacl-tests.lisp qunit-2.9.2.css qunit-2.9.2.js jacl jacl-client.R
 
+# Papers
+DOCS := papers/jacl-els-2020.tex papers/jacl-demo-els-2020.tex
+BIB := papers/jacl-els-2020.bib
+PDFS := $(DOCS:.tex=.pdf)
+
+# Deploy
+CF_DIST := E6GOTXLS9MCZF
+
+all: jacl-dist.zip index.html $(PDFS)
+
 %.html: %.html.m4 %.md
 	m4 $< > $@
 
-all: jacl-dist.zip index.html
+%.pdf: %.tex $(BIB)
+	rubber --into $(dir $<) --pdf $<
 
 jacl-dist.zip: $(DIST_FILES)
 	rm -f $@
@@ -14,7 +27,16 @@ jacl-dist.zip: $(DIST_FILES)
 	cp -R $^ $(basename $@)
 	zip $@ -r $(basename $@)
 
+deploy:
+	aws s3 cp papers/jacl-demo-els-2020.pdf s3://tailrecursion.com/JACL/papers/
+	aws s3 cp jacl-dist.zip s3://tailrecursion.com/JACL/
+	aws s3 cp style.css s3://tailrecursion.com/JACL/
+	aws s3 cp index.html s3://tailrecursion.com/JACL/
+	aws cloudfront create-invalidation --distribution-id $(CF_DIST) --paths '/*'
+
 clean:
 	rm -f jacl-dist.zip
 	rm -rf jacl-dist
 	rm -f index.html
+	rm -f $(DOCS:.tex=.out)
+	rubber --into papers --pdf --clean $(DOCS)
diff --git a/jacl-client.R b/jacl-client.R
index 7a4b663..0daf29f 100755
--- a/jacl-client.R
+++ b/jacl-client.R
@@ -1,5 +1,26 @@
 #!/usr/bin/env Rscript
 
+# Copyright (c) 2020 Alan Dipert <alan@dipert.org>
+# Part of the JACL project: https://tailrecursion.com/JACL/
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
 library(R6)
 library(chromote)
 library(jsonlite)
diff --git a/jacl-tests.lisp b/jacl-tests.lisp
index f9f0fc7..040a060 100644
--- a/jacl-tests.lisp
+++ b/jacl-tests.lisp
@@ -1,3 +1,24 @@
+; Copyright (c) 2020 Alan Dipert <alan@dipert.org>
+; Part of the JACL project: https://tailrecursion.com/JACL/
+;
+; Permission is hereby granted, free of charge, to any person obtaining a copy
+; of this software and associated documentation files (the "Software"), to deal
+; in the Software without restriction, including without limitation the rights
+; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+; copies of the Software, and to permit persons to whom the Software is
+; furnished to do so, subject to the following conditions:
+;
+; The above copyright notice and this permission notice shall be included in all
+; copies or substantial portions of the Software.
+;
+; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+; SOFTWARE.
+
 (jacl:enable-js-syntax)
 
 (let* ((jpkg (jacl:\. (jacl:%js "Package") (|get| @"JACL"))))
diff --git a/jacl.js b/jacl.js
index 75750f7..3235279 100644
--- a/jacl.js
+++ b/jacl.js
@@ -1,3 +1,24 @@
+// Copyright (c) 2020 Alan Dipert <alan@dipert.org>
+// Part of the JACL project: https://tailrecursion.com/JACL/
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+
 // Sentinel used in a few places to indicate absence of a user-provided value
 const UNDEFINED = new Object();
 // Sentinel used to indicate EOF, should generally be a parameter