Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dokumente
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stratum0
dokumente
Commits
9ca319e3
Commit
9ca319e3
authored
3 years ago
by
rohieb
Browse files
Options
Downloads
Patches
Plain Diff
scripts/vc: make it usable from different paths
parent
3fe55d4d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mv-protokolle/Makefile
+1
-1
1 addition, 1 deletion
mv-protokolle/Makefile
scripts/vc
+4
-2
4 additions, 2 deletions
scripts/vc
with
5 additions
and
3 deletions
mv-protokolle/Makefile
+
1
−
1
View file @
9ca319e3
...
...
@@ -53,7 +53,7 @@ s0artcl.cls s0minutes.cls: stratum0-latex/stratum0-latex.ins stratum0-latex/s0ar
if
[
!
-h
s0minutes.cls
]
;
then
ln
-s
stratum0-latex/s0minutes.cls
.
;
fi
vc.tex
:
../.git/index ../.git/HEAD ../scripts/vc ../scripts/vc-git.awk
cd
../scripts
;
sh ./vc
-m
&&
mv
vc.tex ..
../scripts
/vc
-m
%.pdf
:
%.tex vc.tex s0minutes.cls s0artcl.cls
$(
latexmk
)
$(
if
$(
PVC
)
,-pvc,-pvc-
)
"
$<
"
...
...
This diff is collapsed.
Click to expand it.
scripts/vc
+
4
−
2
View file @
9ca319e3
...
...
@@ -3,6 +3,8 @@
# The original file can be found at CTAN:support/vc.
# This file is Public Domain.
selfdir
=
$(
dirname
"
$(
realpath
-e
"
${
0
}
"
)
"
)
# Parse command line options
full
=
0
mod
=
0
...
...
@@ -30,12 +32,12 @@ logformat="${logformat}CommitterEmail: %ce%n"
logformat
=
"
${
logformat
}
CommitterDate: %ci%n"
LC_ALL
=
C
git
--no-pager
log
-1
HEAD
--pretty
=
format:
"
$logformat
"
\
| gawk
-v
script
=
log
-v
full
=
$full
-f
vc-git.awk
\
| gawk
-v
script
=
log
-v
full
=
$full
-f
"
${
selfdir
}
"
/
vc-git.awk
\
>
vc.tex
# Query modification status of the working copy
if
[
"
$mod
"
=
1
]
;
then
git status
--porcelain
=
v1
\
| gawk
-v
script
=
status
-f
vc-git.awk
\
| gawk
-v
script
=
status
-f
"
${
selfdir
}
"
/
vc-git.awk
\
>>
vc.tex
fi
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