Browse Source

updated build to ignore .git directory

pull/1/head
Brett Langdon 14 years ago
parent
commit
76ee9ddc35
2 changed files with 4 additions and 7 deletions
  1. +3
    -6
      Programming In General.tex
  2. +1
    -1
      build

+ 3
- 6
Programming In General.tex View File

@ -15,18 +15,15 @@
\chapter{Introduction}
\input{"./1 - Introduction/Introduction"}
\section{Who This Book Is For}
\input{"./1 - Introduction/1.0 - Who This Book Is For"}
\section{Code Examples}
\input{"./1 - Introduction/1.1 - Code Examples"}
\chapter{Functional Programming}
\input{"./2 - Functional Programming/Functional Programming"}
\chapter{Object Oriented Programming}
\input{"./3 - Object Oriented Programming/Object Oriented Programming"}
\chapter{Data Structures}
\input{"./4 - Data Structures/Data Structures"}
\chapter{Algorithms}
\input{"./5 - Algorithms/Algorithms"}
\end{document}

+ 1
- 1
build View File

@ -12,7 +12,7 @@ header.close();
dirs = [x[0] for x in os.walk('.')][1:]
for d in dirs:
for d in filter(lambda d: not re.search('.git',d),dirs):
chapter = re.sub('\d+\s-\s', '', d[2:])
book.write('\r\n\chapter{' + chapter + '}\r\n')
if os.path.exists(d + '/' + chapter + '.tex'):


Loading…
Cancel
Save