File: BuildWithGBP.nw

package info (click to toggle)
dpb 0.9.9
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,344 kB
  • sloc: sh: 77; makefile: 19
file content (267 lines) | stat: -rw-r--r-- 8,887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
%\documentclass[fontsize=10pt, paper=a4, twoside=true, open=right, hidelinks]{scrbook}
\documentclass[
pagesize=pdftex,
paper=a4,     % DinA4 papersize
fontsize=10pt,        % font size
twoside,     % oneside, twoside
open=right,   % openleft, openright, openany
hidelinks,
]{scrbook}
% For the used packages there is first a description what this package does
% Source: https://en.wikibooks.org/wiki/LaTeX/Package_Reference
% To choose the encoding of the input text. You might need it if you are
% writing documents in a language other than English. Check in the 
% Special Characters section. The source is UTF-8 encoded.
% This is the information for the input codepage
\usepackage[utf8]{inputenc}
% To choose the font encoding of the output text. You might need it if 
% you are writing documents in a language other than English. Check in 
% the Fonts section. It is also for the date format.
\usepackage[T1]{fontenc}
% It provides the internationalization of LaTeX. It has to be loaded in 
% any document, and you have to give as an option the main language you 
% are going to use in the document. For more information see the 
% Internationalization section.
\usepackage[ngerman]{babel}
% Allows you to insert graphic files within a document. 
\usepackage{graphicx}
% For a better view at display
% To support T1 you need lmodern (Latin Modern) too
\usepackage{lmodern}
%So you can use toc for more than 100 pages
\DeclareTOCStyleEntries[pagenumberwidth=2em]{tocline}{part,chapter,section,subsection,subsubsection}
\RedeclareSectionCommands[tocdynnumwidth]{part,chapter,section,subsection,subsubsection}
% You need the following package to convert LaTex to HTML and as a result 
% for Epub 
\usepackage{lwarp}
% To format colored text
\usepackage{color}
% To create QR-Codes within LaTeX
\usepackage{qrcode}
% Microtype changes the spaces between the words and letters
% It must be behind <lwarp>
\usepackage{microtype}
% Lets you change line spacing, e.g. provides the \doublespacing command 
% for making double spaced documents. For more information, see the 
% relevant section.
\usepackage[singlespacing=true]{scrlayer-scrpage}
% To use quotation in different langauges and it must be before "url"
\usepackage{csquotes}
%  To use the specifica of NoWeb
\usepackage{noweb}
\noweboptions{smallcode,longchunks,shift}
% Hyperref gives LaTeX the possibility to manage links within the document or 
% to any URL when you compile in PDF. For more information, see the 
% relevant section.
% Cleverref enhances LaTeX's cross-referencing features, allowing the
% format of references to be determined automatically according to
% the type of reference.
%It must be before the bibliography
\usepackage[lowtilde,hyphens]{url}
% hyperref transforms citations into hyperlink. It have to load after biblatex
\usepackage[breaklinks=true]{hyperref}
% For the bibliography with URL and UTF-8
% To use it you have to run 'biber'
\usepackage[sorting=none,backend=biber,backref=true]{biblatex}
\addbibresource{Literatur.bib}
% Literaturverzeichnis mit Nummerierung der Einträge
%\bibliographystyle{unsrt}
\bibliography{Literatur}


% Packages to use math symbols
%\usepackage{amsmath}

%\usepackage[olines,singlespacing=true]{scrlayer-scrpage}
%\automark[part]{part}
%\pagestyle{myheadings}

% Only the import is defined here. All other things are defined in the
% Title page.
\usepackage{scrhack}
% To avoid messages about deprecated values for KOMA scripts
\usepackage[doublespacing]{setspace}
\let\tempone\itemize
\let\temptwo\enditemize
\renewenvironment{itemize}{\tempone\addtolength{\itemsep}{-0.9\baselineskip}}{\temptwo}

% To insert programming code within the document. Many languages are 
% supported and the output can be customized. For more information, see 
% the Source Code Listings. 
\usepackage{listings}
%\booltrue{FormatEPUB} % !

% The 'figure' command has been redefined so that an image is displayed 
% at the position where it is inserted even without float.
\makeatletter
\renewenvironment{figure}[1][]{
\par
\medskip
\noindent\begin{minipage}{\linewidth}
\def\@captype{figure}
}{
\end{minipage}\hss\par
\medskip
\par
}
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3em}}
\makeatother

%\usepackage{caption}


% The showkeys package prints the internal keys of, among other things, 
% citations in the text and items in the bibliography. The package loading 
% order does not matter. It is displayed at the Start of a paragraph.
% This is not wanted
%\usepackage{showkeys}
%\newcommand{\comment}[1]{}
\newcommand{\urlWkp}[1]{$\rightarrow$ \url{http://de.wikipedia.org/wiki/#1}}
\newcommand{\hrefWkp}[1]{\href{http://de.wikipedia.org/wiki/#1}{\tt\ \ldots /#1}}
%Gibt einen kleine Zeilenabstand in Listen - itemize durch fouritemize ersetzen
\newenvironment{fouritemize}{\begin{itemize}\itemsep 2pt}{\end{itemize}}
%Gibt -wenn nötig - einen kleineren Zeilenabstand in Beschreibungen
\newenvironment{nulldescription}{\begin{description}\itemsep 0pt}{\end{description}}
% Verkleinert Zeilenabstand bei nummerierten Listen
\usepackage{enumitem}
%\setlist[enumerate]{itemsep=-0mm}
\setlist{nosep}
%zur Erstellung eines Stichwortverzeichnisses
\usepackage{makeidx}
\makeindex
\textheight220mm{}
%Setzt die Ebene der Gliederung für die Nummerierung
\setcounter{secnumdepth}{5}
%Setzt die Ebenen für das Inhaltsverzeichnis
\setcounter{tocdepth}{4}
\setcounter{FileDepth}{1}
%\booltrue{combineHigherDepths}
%\setcounter{sideTOCDepth}{1}

% Now we define title, author and date
\title{\texttt{Debian}-Pakete bauen mit gbp}
\author{Dipl.-Ing. Mechtilde Stehmann \and Dr. Michael Stehmann}
\vspace{2cm}
\date{\normalsize \today}

% To deactivate ligatures of (-) and (>).
% and work for pdflatex'
% Thanks Marei for her nice ideas and her support

\makeatletter
\ExplSyntaxOn

\def\disableLig{
\do@noligs\-%
\do@noligs\>%
\do@noligs\<%
\do@noligs\'%
%\char_set_catcode_other:N \ 
}

\AddToHook{cmd/endmoddef/after}{\disableLig}

\let\orig@subpageref\subpageref
\renewcommand{\subpageref}[1]{%
    \tl_set_rescan:Nnn \l_tmpa_tl {\char_set_catcode_other:N -} {#1}
        \exp_args:NV \orig@subpageref \l_tmpa_tl
}

\let\orig@pagenumsl\@pagenumsl
\def\@pagenumsl#1{
        \tl_set_rescan:Nnn \l_tmpa_tl {\char_set_catcode_other:N -} {#1}
        \exp_args:NV \orig@pagenumsl \l_tmpa_tl
}
\ExplSyntaxOff

\makeatother

% To handle hyphenation in words with hyphen
\makeatletter
	\declare@shorthand{ngerman}{"=}{%
	\babelhyphen{nobreak}}
\makeatother

% To use \texttt in header and toc
\makeatletter
\def\@font@info#1{}
\makeatother

% Here does the document start
\begin{document}

\renewcommand{\figurename}{Abbildung}

\input{GBP-Title} % bindet die Datei Titel.tex ein
\include{GBP-Part1} % bindet Part1 = 'Überblick' ein
\include{GBP-Part2} % bindet Part2 = 'Vorbereitung' ein
\include{GBP-Part3} % bindet Part3 = 'Debian-Paket bauen' ein
\include{GBP-Part4} % bindet Part4 = 'Veröffentlichen' ein
\include{GBP-Part5} % bindet Part5 = 'Weitere Bestandteile' ein
\include{GBP-Part6} % bindet Part6 = 'Plugins und Skripte' ein

\pagenumbering{Roman}
\renewcommand\thepage{A--\roman{page}}
\part{Anhang}
\appendix

%\chapter*{Todos}

%\begin{itemize}
     %\item{Funktionen debmake analysieren}
     %\item{Beschreibung der regulären Ausdrücke im watch file}
     %\item{Dokumente nach \textit{/usr/share/doc/} verschieben}
     %\item{textsuite-autopkgtext-missing}
     %\item{watch-does-not-check-gpg-signature}
     
     %\item{auf \textit{Package is up to date for from} in der Uscan-Ausgabe}
%\end{itemize}

%\begin{verbatim}
%Typical git workflow

%git workflow is quite straightforward:

    %fetch tarball

    %git-import-orig <tarball> (updates upstream and pristine-tar branches)
    %update changelog and other files
    %do package improvements, remove patches applied upstream, etc.
    %debcommit -a (does a local commit in the master branch)
    %git-buildpackage (which uses cowbuilder in my setup)
    %local testing
    %dch -r
    %git commit -a -m "Release ...."
    %git-buildpackage --git-tag \
    %--git-sign-tags (produces and tags the release for upload)

    %dput <...>.changes
    %git push --all (pushes all local changes to the repo at salsa.d.o)
    %git push --tags (pushes the tags)
%\end{verbatim}

%Found this solution for the appendix in
% https://en.wikibooks.org/wiki/LaTeX/Document_Structure#The_document_environment

% Pinting 'List of figures'
\phantomsection
\addcontentsline{toc}{chapter}{Abbildungsverzeichnis}
\listoffigures

\newpage
% Printing complete bibliography
% Filename = Literatur.bib
\renewcommand{\bibname}{Literaturverzeichnis}
\phantomsection
\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\printbibliography

\newpage
\renewcommand{\indexname}{Stichwortverzeichnis}

\phantomsection
\addcontentsline{toc}{chapter}{Stichwortverzeichnis}

\printindex
% That is the end of the document
\end{document}