commit d2d4b80d4867f0008ca64f58864a9c858fd7bf56
parent 04b5acee3a5d7d3d64c843a59715cb2f70079279
Author: finwo <finwo@pm.me>
Date: Wed, 19 Sep 2018 15:28:09 +0200
Still working on the unilicense
Diffstat:
7 files changed, 117 insertions(+), 37 deletions(-)
diff --git a/build.sh b/build.sh
@@ -1,23 +1,28 @@
#!/usr/bin/env bash
-echo "Updating gitignore"
-curl -s https://www.gitignore.io/api/osx,linux,windows,intellij,composer > .gitignore
-echo /.gtm/ >> .gitignore
-echo /.idea/ >> .gitignore
-echo composer.lock >> .gitignore
-echo 'src/*/*.pdf' >> .gitignore
-echo '*.aux' >> .gitignore
-echo '*.log' >> .gitignore
-echo '*.toc' >> .gitignore
-
-echo "Updating PHP dependencies"
-composer install &>/dev/null
+#echo "Updating gitignore"
+#curl -s https://www.gitignore.io/api/osx,linux,windows,intellij,composer > .gitignore
+#echo /.gtm/ >> .gitignore
+#echo /.idea/ >> .gitignore
+#echo composer.lock >> .gitignore
+#echo 'src/*/*.pdf' >> .gitignore
+#echo '*.aux' >> .gitignore
+#echo '*.log' >> .gitignore
+#echo '*.toc' >> .gitignore
+#
+#echo "Updating PHP dependencies"
+#composer install &>/dev/null
echo "(Re)building generated specs"
+ORGDIR=$(pwd)
SPECDIR=$(pwd)/spec
-for d in $(find $(pwd)/src -mindepth 1 -maxdepth 1 -type d); do
- cd $d
- pdflatex content.tex && cp content.pdf ${SPECDIR}/$(basename $d).pdf
+cd src
+for f in $(find . -type f -regextype posix-egrep -regex '\./[0-9]{4}.*\.tex'); do
+ pdflatex ${f}
+ pdflatex ${f}
+ cp ${f%.*}.pdf ${SPECDIR}
+ rm -f *.pdf
+ rm -f *.aux
+ rm -f *.log
+ rm -f *.toc
done
-#pdflatex -output-directory=src/0002 -aux-directory=aux src/0002/content.tex && cp src/0002/content.pdf spec/0002.pdf
-#pandoc -f latex -o spec/spec0002.pdf src/0002.tex
diff --git a/spec/0002.pdf b/spec/0002.pdf
Binary files differ.
diff --git a/src/0002.tex b/src/0002.tex
@@ -0,0 +1,82 @@
+\documentclass[a4paper,12pt]{article}
+\pagenumbering{arabic}
+\usepackage[utf8]{inputenc}
+\usepackage{listings}
+\usepackage{xcolor}
+\usepackage{xparse}
+
+\NewDocumentCommand{\codeword}{v}{%
+\texttt{\textcolor{blue}{#1}}%
+}
+
+\lstset{language=C,keywordstyle={\bfseries \color{blue}}}
+
+\begin{document}
+
+\title{Ratus Unilicense 1.0}
+\author{Robin Bron}
+\date{\today}
+\maketitle
+
+\vfill
+\input{copyright.tex}
+\newpage
+\tableofcontents
+\newpage
+
+
+\section{Introduction}
+ This document specifies the Ratus Unilicense 1.0 license.
+
+\subsection{Conventions}
+\input{rfc2119.tex}
+
+\newpage
+\section{The License}
+
+\subsection{Inside a file}
+ Ratus Unilicense 1.0 MAY be applied to a single file or document using the
+ following text near the start of the file or document, replacing \{name\} by
+ the name of the entity holding the rights (most likely your or your company's
+ name).
+
+ \begin{quote}
+ Copyright (C) \{name\} - All Rights Reserved
+ Ratus Unilicense 1.0
+
+ Unauthorized copying, modifying or distribution of this document and
+ associated documentation documents, via any medium, is strictly prohibited
+ without the express permission of \{name\}.
+
+ The full extend of Ratus Unilicense 1.0 can be found using the following
+ url: https://trackthis.nl/license/ratus-unilicense-1.0
+ \end{quote}
+
+\subsection{Full Version}
+ Ratus Unilicense 1.0 SHOULD be applied to a collection of files or documents
+ using a single \codeword{LICENSE} file or document in the folder or container
+ which holds the files or documents licensed byt it.
+
+ To apply Ratus Unilicense 1.0 to the contents of a folder or container, the
+ contents of the \codeword{LICENSE} file or document MUST be as follows,
+ replacing \{name\} by the name of the entity holding the rights (most likely
+ your or your company's name).
+
+ \begin{quote}
+ Copyright (C) \{name\} - All Rights Reserved
+ Ratus Unilicense 1.0
+
+ Unauthorized copying, modifying or distribution of the files and/or
+ documents contained in the folder or container holding this license and
+ associated files and/or documents (the "Software"), is strictly prohibited
+ without the express permission of \{name\}.
+
+ Copies or derivatives of the files and/or documents contained in the folder
+ or container holding this license
+ % TODO: same, newer or relicense by copyright holder
+ \end{quote}
+
+
+%\subsection{Full Version}
+
+\end{document}
diff --git a/src/0002/content.tex b/src/0002/content.tex
@@ -1,16 +0,0 @@
-\documentclass[a4paper,12pt]{article}
-\usepackage[utf8]{inputenc}
-\pagenumbering{arabic}
-
-\begin{document}
-
- \title{Ratus Unilicense}
- \author{Robin Bron}
- \date{\today}
- \maketitle
-
- \tableofcontents
-
- A sentence of text
-
-\end{document}
diff --git a/src/RFC2119.md b/src/RFC2119.md
@@ -1,4 +0,0 @@
-The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
-"SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this
-document are to be interpreted as described in `RFC2119` when, and only when,
-they appear in all capitals, as shown here.
diff --git a/src/copyright.tex b/src/copyright.tex
@@ -0,0 +1,9 @@
+\begin{flushleft}
+Copyright Notice
+\newline
+\newline
+This document is licensed under a Creative Commons Attribution 4.0 International License
+\newline
+\newline
+You should have received a copy of the license along with this work. If not, see <http://creativecommons.org/licenses/by/4.0/>
+\end{flushleft}
diff --git a/src/rfc2119.tex b/src/rfc2119.tex
@@ -0,0 +1,4 @@
+The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
+"SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this
+document are to be interpreted as described in \codeword{RFC2119} when, and
+only when, they appear in all capitals, as shown here.