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
1410065e
Commit
1410065e
authored
9 years ago
by
christian
Browse files
Options
Downloads
Patches
Plain Diff
replaced return with exit, fixed minor mistakes
parent
6c8ea553
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/makeDoku.sh
+5
-6
5 additions, 6 deletions
scripts/makeDoku.sh
with
5 additions
and
6 deletions
scripts/makeDoku.sh
+
5
−
6
View file @
1410065e
...
@@ -19,17 +19,17 @@ else
...
@@ -19,17 +19,17 @@ else
echo
$PACKAGELIST
echo
$PACKAGELIST
fi
fi
DOCUDIR
=
"
$MY_DIR
/
../Doku"
DOCUDIR
=
"
$MY_DIR
../Doku"
if
[
!
-f
"
$DOCUDIR
/HEADER.tex"
]
;
then
#HEADER muss ex. sonst kommt auf keinen Fall was sinnvolles bei rum
if
[
!
-f
"
$DOCUDIR
/HEADER.tex"
]
;
then
#HEADER muss ex. sonst kommt auf keinen Fall was sinnvolles bei rum
echo
"Leider ist keine Dokumentation auf dem LIP-Stick vorhanden..."
echo
"Leider ist keine Dokumentation auf dem LIP-Stick vorhanden..."
return
0
#linuxparty.sh soll auch ohne Doku Verzeichnis laufen
exit
0
#linuxparty.sh soll auch ohne Doku Verzeichnis laufen
fi
fi
#DOCFILE=$(mktemp --suffix='.tex')
#DOCFILE=$(mktemp --suffix='.tex')
WORKING_DIR
=
$(
mktemp
-d
)
WORKING_DIR
=
$(
mktemp
-d
)
cp
-a
"
$DOCUDIR
/."
"
$WORKING_DIR
"
cp
-a
"
$DOCUDIR
/."
"
$WORKING_DIR
"
for
PACKAGE
in
$
INSTALLED_PKGS
;
do
for
PACKAGE
in
$
PACKAGELIST
;
do
#zenity and kdialog return quoted package names; nice for apt call but bad here
#zenity and kdialog return quoted package names; nice for apt call but bad here
CLEAN_PACKAGE_NAME
=
$(
echo
"
$PACKAGE
"
|
tr
-d
"
\"
"
)
CLEAN_PACKAGE_NAME
=
$(
echo
"
$PACKAGE
"
|
tr
-d
"
\"
"
)
echo
"Dokumentation fuer
$PACKAGE
von
${
WORKING_DIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
echo
"Dokumentation fuer
$PACKAGE
von
${
WORKING_DIR
}
/
${
CLEAN_PACKAGE_NAME
}
.tex"
...
@@ -43,8 +43,7 @@ DOCUDIR="$MY_DIR/../Doku"
...
@@ -43,8 +43,7 @@ DOCUDIR="$MY_DIR/../Doku"
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
# ja, ist Absicht
pdflatex
-output-directory
"
$WORKING_DIR
"
"DOCUMENTATION.gen.tex"
# ja, ist Absicht
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
err
"Fehler beim kompilieren der Dokumentation."
exit
1
return
1
fi
fi
popd
popd
...
@@ -53,4 +52,4 @@ DOCUDIR="$MY_DIR/../Doku"
...
@@ -53,4 +52,4 @@ DOCUDIR="$MY_DIR/../Doku"
RC
=
$?
RC
=
$?
pressenter
"Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis (
$HOME
) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
pressenter
"Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis (
$HOME
) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
return
$RC
exit
$RC
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