|
| 1 | +#!/bin/bash |
| 2 | +set -e # Exit with nonzero exit code if anything fails |
| 3 | + |
| 4 | +# Download fvextra package |
| 5 | +wget https://raw.githubusercontent.com/gpoore/fvextra/cc1c0c5f7b92023cfec67084e2a87bdac520414c/fvextra/fvextra.sty |
| 6 | + |
| 7 | +echo """ |
| 8 | +\\documentclass[11pt,a4paper,fleqn]{report} |
| 9 | +\\usepackage[left=5mm,top=5mm,right=5mm,bottom=5mm]{geometry} |
| 10 | +\\textwidth=200mm |
| 11 | +\\usepackage[utf8]{inputenc} |
| 12 | +\\usepackage[T1]{fontenc} |
| 13 | +\\usepackage[T2A]{fontenc} |
| 14 | +\\usepackage{fvextra} |
| 15 | +\\usepackage{minted} |
| 16 | +\\usemintedstyle{vs} |
| 17 | +\\usepackage{makeidx} |
| 18 | +\\usepackage[columns=1]{idxlayout} |
| 19 | +\\makeindex |
| 20 | +\\renewcommand{\\thesection}{\\arabic{chapter}.\\arabic{section}} |
| 21 | +\\setcounter{chapter}{1} |
| 22 | +\\setcounter{section}{0} |
| 23 | +\\usepackage[tiny]{titlesec} |
| 24 | +\\titlespacing\\chapter{0mm}{0mm}{0mm} |
| 25 | +\\titlespacing\\section{0mm}{0mm}{0mm} |
| 26 | +\\DeclareUnicodeCharacter{221E}{\\ensuremath{\\infty}} |
| 27 | +\\DeclareUnicodeCharacter{FFFD}{\\ensuremath{ }} |
| 28 | +\\usepackage{fancyhdr} |
| 29 | +\\pagestyle{fancy} |
| 30 | +\\fancyhf{} |
| 31 | +\\fancyfoot[C]{\\thepage} |
| 32 | +\\renewcommand{\\headrulewidth}{0mm} |
| 33 | +\\renewcommand{\\footrulewidth}{0mm} |
| 34 | +\\renewcommand{\\baselinestretch}{0.7} |
| 35 | +\\begin{document} |
| 36 | +\\sf |
| 37 | +\\noindent{\\Large LinksPlatform's Platform.${TRAVIS_REPO_NAME} Class Library} |
| 38 | +""" |
| 39 | + |
| 40 | +# Remove auto-generated code files |
| 41 | +find ./obj -type f -iname "*.cs" -delete |
| 42 | + |
| 43 | +# CSharp files |
| 44 | +#find * -type f -iname '*.cs' -exec sh -c 'enconv "{}"' \; |
| 45 | +find . -type f -iname '*.cs' | sort -b | python format-csharp-files.py |
| 46 | + |
| 47 | +echo """ |
| 48 | +\\printindex |
| 49 | +\\end{document} |
| 50 | +""" |
0 commit comments