Skip to content

Commit

Permalink
arrange files for CTAN
Browse files Browse the repository at this point in the history
  • Loading branch information
kaat0 committed Jan 16, 2020
1 parent b2267be commit 7c0d362
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,7 @@ Icon
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.apdisk

# Archives for upload
*.zip
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TikZ-trackschematic

------------

# Installation
Expand Down
26 changes: 26 additions & 0 deletions ctan-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /bin/sh

echo "specify version ( e.g. v0.5 ):"
read VERSION

mkdir tikz-trackschematic-$VERSION
cp README.md tikz-trackschematic-$VERSION/README.md
cp doc/tikz-trackschematic-documentation.sty tikz-trackschematic-$VERSION/tikz-trackschematic-documentation.sty
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
cp src/tikzlibrarytrackschematic.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.code.tex
cp src/tikzlibrarytrackschematic.constructions.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.constructions.code.tex
cp src/tikzlibrarytrackschematic.messures.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.messures.code.tex
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

zip -r tikz-trackschematic-$VERSION.zip tikz-trackschematic-$VERSION/*
rm -rf tikz-trackschematic-$VERSION/*
rmdir tikz-trackschematic-$VERSION
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/doc.tex → doc/manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
DIV=15,
]{scrartcl}

\usepackage{doc}
\usepackage{tikz-trackschematic-documentation}

%%%%%% AUTHORS list %%%%%%%%%%

Expand Down
2 changes: 1 addition & 1 deletion doc/snippets.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\usepackage[margin=0pt]{geometry}
\pagestyle{empty}

\usepackage{doc}
\usepackage{tikz-trackschematic-documentation}

\lstset{%
language = TeX,%
Expand Down
File renamed without changes.

0 comments on commit 7c0d362

Please sign in to comment.