Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipstick
Commits
3cf7e5b8
Commit
3cf7e5b8
authored
10 years ago
by
Christopher
Browse files
Options
Downloads
Patches
Plain Diff
create_doc(): copy all doc files to tmp dir to support pictures, etc.
parent
d8b44a91
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/linuxparty.sh
+11
-11
11 additions, 11 deletions
scripts/linuxparty.sh
with
11 additions
and
11 deletions
scripts/linuxparty.sh
+
11
−
11
View file @
3cf7e5b8
...
...
@@ -387,30 +387,30 @@ create_doc()
return
0
#linuxparty.sh soll auch ohne Doku Verzeichnis laufen
fi
DOCFILE
=
$(
mktemp
--suffix
=
'.tex'
)
#
DOCFILE=$(mktemp --suffix='.tex')
WORKING_DIR
=
$(
mktemp
-d
)
cp
-a
"
$DOCUDIR
/."
"
$WORKING_DIR
"
for
PACKAGE
in
$INSTALLED_PKGS
;
do
#zenity and kdialog return quoted package names; nice for apt call but bad here
CLEAN_PACKAGE_NAME
=
$(
echo
"
$PACKAGE
"
|
tr
-d
"
\"
"
)
echo
"Dokumentation fuer
$PACKAGE
von
${
DOCUDIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
if
[
-f
"
${
DOCUDIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
]
;
then
#inclue is a bad idea here because pdflatex writes *.aux files to /cdrom
#echo "\\include{${DOCUDIR}/${CLEAN_PACKAGE_NAME}.tex}" >> "$DOCFILE"
echo
echo
"% from
${
DOCUDIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex :"
>>
"
$DOCFILE
"
cat
"
${
DOCUDIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
>>
"
$DOCFILE
"
echo
"Dokumentation fuer
$PACKAGE
von
${
WORKING_DIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
if
[
-f
"
${
WORKING_DIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
]
;
then
echo
"
\\
input{
${
CLEAN_PACKAGE_NAME
}
.tex}"
>>
"
$WORKING_DIR
/DOCUMENTATION.gen.tex"
#cat "${DOCUDIR}/${CLEAN_PACKAGE_NAME}.tex" >> "$DOCFILE"
fi
done
pdflatex
-output-directory
"
$WORKING_DIR
"
"
$DOCFILE
"
pdflatex
-output-directory
"
$WORKING_DIR
"
"
$DOCFILE
"
# ja, ist Absicht
pushd
"
$WORKING_DIR
"
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
# ja, ist Absicht
if
[
$?
-ne
0
]
;
then
err
"Fehler beim kompilieren der Dokumentation."
return
1
fi
popd
cp
"
${
WORKING_DIR
}
/
$(
basename
-s
.tex
${
DOCFILE
}
)
.pdf"
"
$HOME
/Deine-LIP-Dokumentation.pdf"
cp
"
${
WORKING_DIR
}
/
DOCUMENTATION.gen
.pdf"
"
$HOME
/Deine-LIP-Dokumentation.pdf"
RC
=
$?
pressenter
"Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis (
$HOME
) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment