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
cf7b73ef
Commit
cf7b73ef
authored
9 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Patches
Plain Diff
makeDoku: clean up and fix obvious errors
parent
7a2aed02
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
+31
-33
31 additions, 33 deletions
scripts/makeDoku.sh
with
31 additions
and
33 deletions
scripts/makeDoku.sh
+
31
−
33
View file @
cf7b73ef
...
@@ -6,26 +6,25 @@ then
...
@@ -6,26 +6,25 @@ then
echo
"No path supplied"
echo
"No path supplied"
exit
1
exit
1
else
else
DOCUDIR
=
"
$1
../Doku"
DOCUDIR
=
"
$1
/
../Doku"
echo
$DOCUDIR
echo
$DOCUDIR
shift
fi
fi
if
[
$#
-
le
1
]
if
[
$#
-
eq
0
]
then
then
echo
"No packages supplied"
echo
"No packages supplied"
exit
1
exit
1
else
else
PACKAGELIST
=
$
2
PACKAGELIST
=
$
@
echo
$PACKAGELIST
echo
$PACKAGELIST
fi
fi
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..."
exit
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')
WORKING_DIR
=
$(
mktemp
-d
)
WORKING_DIR
=
$(
mktemp
-d
)
cp
-a
"
$DOCUDIR
/."
"
$WORKING_DIR
"
cp
-a
"
$DOCUDIR
/."
"
$WORKING_DIR
"
...
@@ -50,6 +49,5 @@ DOCUDIR="$MY_DIR../Doku"
...
@@ -50,6 +49,5 @@ DOCUDIR="$MY_DIR../Doku"
USER_HOME
=
$(
getent passwd
"
${
SUDO_USER
:-
$USER
}
"
|
cut
-d
':'
-f6
)
USER_HOME
=
$(
getent passwd
"
${
SUDO_USER
:-
$USER
}
"
|
cut
-d
':'
-f6
)
cp
"
${
WORKING_DIR
}
/DOCUMENTATION.gen.pdf"
"
${
USER_HOME
}
/Deine-LIP-Dokumentation.pdf"
cp
"
${
WORKING_DIR
}
/DOCUMENTATION.gen.pdf"
"
${
USER_HOME
}
/Deine-LIP-Dokumentation.pdf"
RC
=
$?
RC
=
$?
pressenter
"Dokummentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis (
$HOME
) als 'Deine-LIP-Dokumentation.pdf' abegelegt."
exit
$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