# HG changeset patch # User František Kučera # Date 1570210840 -7200 # Node ID 1dc027689f93bee6fb8b020677e913b03b7a1262 # Parent 904c1827bc3892b25b8361d066efd8dabc404240 print version from Mercurial diff -r 904c1827bc38 -r 1dc027689f93 Makefile --- a/Makefile Thu Oct 03 17:22:01 2019 +0200 +++ b/Makefile Fri Oct 04 19:40:40 2019 +0200 @@ -13,6 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +VERSION_PARAMS := $(shell hg log -r '.' --template '--stringparam versionTag {latesttag} --stringparam versionDistance {latesttagdistance} --stringparam versionHash {node|short}') + all: validate xhtml txt pdf logo-png statistics validate: @@ -20,19 +22,19 @@ xhtml: mkdir -p build - xsltproc --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml + xsltproc $(VERSION_PARAMS) --output build/index.xhtml --nonet templates/ssm.xhtml.xsl text/ssm.en.xml cp templates/*.css build cp templates/*.woff build pdf: mkdir -p build - xsltproc --output build/ssm.en.fodt --nonet templates/ssm.odt.xsl text/ssm.en.xml + xsltproc $(VERSION_PARAMS) --output build/ssm.en.fodt --nonet templates/ssm.odt.xsl text/ssm.en.xml libreoffice --convert-to pdf --outdir build build/ssm.en.fodt # TODO: better line wrapping txt: mkdir -p build - xsltproc --nonet templates/ssm.txt.xsl text/ssm.en.xml | fmt -w 74 -s | sed -E 's/( +)([^- ])/\1 \2/g' > build/ssm.en.txt + xsltproc $(VERSION_PARAMS) --nonet templates/ssm.txt.xsl text/ssm.en.xml | fmt -w 74 -s | sed -E 's/( +)([^- ])/\1 \2/g' > build/ssm.en.txt logo-png: mkdir -p build diff -r 904c1827bc38 -r 1dc027689f93 templates/common.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/common.xsl Fri Oct 04 19:40:40 2019 +0200 @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + ( + + ) + + + + \ No newline at end of file diff -r 904c1827bc38 -r 1dc027689f93 templates/ssm.odt.xsl --- a/templates/ssm.odt.xsl Thu Oct 03 17:22:01 2019 +0200 +++ b/templates/ssm.odt.xsl Fri Oct 04 19:40:40 2019 +0200 @@ -27,9 +27,13 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd" - exclude-result-prefixes="fn m xs xsi"> + exclude-result-prefixes="fn m xs"> + + + + + + - - <DRAFT> Please note that this is a draft version. Stay tuned for v1.0.0! </DRAFT> + + + + + + + diff -r 904c1827bc38 -r 1dc027689f93 templates/ssm.txt.xsl --- a/templates/ssm.txt.xsl Thu Oct 03 17:22:01 2019 +0200 +++ b/templates/ssm.txt.xsl Fri Oct 04 19:40:40 2019 +0200 @@ -20,9 +20,13 @@ xmlns:m="tag:globalcode.info,2019:sane-software/manifesto" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd"> + xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + + + + + *** *** - @@ -43,6 +46,13 @@ ---------------------------------------------------------------- Sane Software Manifesto <https://sane-software.globalcode.info/> Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) + Version: + + + + + + This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License <https://creativecommons.org/licenses/by-nd/4.0/>. ---------------------------------------------------------------- diff -r 904c1827bc38 -r 1dc027689f93 templates/ssm.xhtml.xsl --- a/templates/ssm.xhtml.xsl Thu Oct 03 17:22:01 2019 +0200 +++ b/templates/ssm.xhtml.xsl Fri Oct 04 19:40:40 2019 +0200 @@ -24,9 +24,13 @@ xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd" - exclude-result-prefixes="fn h m xs xsi"> + exclude-result-prefixes="fn h m xs"> + + + + + + - -

<DRAFT> Please note that this is a draft version. Stay tuned for v1.0.0! </DRAFT>

+

+ + + + + +