2020-02-10 18:01:40 +01:00
#!/usr/bin/env sh
2020-01-16 21:49:53 +01:00
2022-01-06 20:17:51 +01:00
# Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
2021-01-02 14:04:05 +01:00
# Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
echo "specify version ( e.g. v0.6 ):"
2020-01-16 21:49:53 +01:00
read VERSION
2020-02-11 12:42:17 +01:00
# create temporary folder
2020-01-16 21:49:53 +01:00
mkdir tikz-trackschematic-$VERSION
2020-02-11 12:42:17 +01:00
# copy README and .sty-file
2020-01-16 21:49:53 +01:00
cp README.md tikz-trackschematic-$VERSION /README.md
cp doc/tikz-trackschematic-documentation.sty tikz-trackschematic-$VERSION /tikz-trackschematic-documentation.sty
2020-02-11 12:42:17 +01:00
# copy and rename documentation
2020-01-16 21:49:53 +01:00
cp doc/manual.pdf tikz-trackschematic-$VERSION /tikz-trackschematic.pdf
cp doc/manual.tex tikz-trackschematic-$VERSION /tikz-trackschematic.tex
cp doc/snippets.pdf tikz-trackschematic-$VERSION /tikz-trackschematic-snippets.pdf
cp doc/snippets.tex tikz-trackschematic-$VERSION /tikz-trackschematic-snippets.tex
mkdir tikz-trackschematic-$VERSION /tikz-trackschematic-examples
mkdir tikz-trackschematic-$VERSION /tikz-trackschematic-snippets
cp -R doc/examples/* tikz-trackschematic-$VERSION /tikz-trackschematic-examples
cp -R doc/snippets/* tikz-trackschematic-$VERSION /tikz-trackschematic-snippets
2020-02-11 12:42:17 +01:00
# copy src
2021-01-02 14:04:05 +01:00
cp src/tikz-trackschematic.sty tikz-trackschematic-$VERSION /tikz-trackschematic.sty
2020-01-16 21:49:53 +01:00
cp src/tikzlibrarytrackschematic.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.code.tex
cp src/tikzlibrarytrackschematic.constructions.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.constructions.code.tex
2021-01-02 14:04:05 +01:00
cp src/tikzlibrarytrackschematic.electrics.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.electrics.code.tex
cp src/tikzlibrarytrackschematic.measures.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.measures.code.tex
2020-01-16 21:49:53 +01:00
cp src/tikzlibrarytrackschematic.topology.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.topology.code.tex
cp src/tikzlibrarytrackschematic.trafficcontrol.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.trafficcontrol.code.tex
cp src/tikzlibrarytrackschematic.vehicles.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.vehicles.code.tex
2021-09-30 12:40:26 +02:00
cp src/tikzlibrarytrackschematic.symbology.code.tex tikz-trackschematic-$VERSION /tikzlibrarytrackschematic.symbology.code.tex
2020-01-16 21:49:53 +01:00
2020-02-11 12:42:17 +01:00
# zip package
2020-01-16 21:49:53 +01:00
zip -r tikz-trackschematic-$VERSION .zip tikz-trackschematic-$VERSION /*
2020-02-11 12:42:17 +01:00
#cleanup
2020-01-16 21:49:53 +01:00
rm -rf tikz-trackschematic-$VERSION /*
rmdir tikz-trackschematic-$VERSION