Four templates need it and two did not have it. The paper copy called gawk -f ~/bin/vc-git.awk while shipping vc-git.awk beside itself, so it only worked for someone who had also installed the awk script by hand; it now calls the copy it ships with. Templates link to ../../resources/, which new_tex_document has to dereference when it extracts one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
25 lines
786 B
Bash
Executable File
25 lines
786 B
Bash
Executable File
#!/bin/sh
|
|
# This is file 'vc' from the vc bundle for TeX.
|
|
# The original file can be found at CTAN:support/vc.
|
|
# This file is Public Domain.
|
|
|
|
# Parse command line options.
|
|
full=0
|
|
mod=0
|
|
while [ -n "$(echo $1 | grep '-')" ]; do
|
|
case $1 in
|
|
-f ) full=1 ;;
|
|
-m ) mod=1 ;;
|
|
* ) echo 'usage: vc [-f] [-m]'
|
|
exit 1
|
|
esac
|
|
shift
|
|
done
|
|
# English locale.
|
|
LC_ALL=C
|
|
git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ai%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %ci%n" |gawk -v script=log -v full=$full -f ./resources/vc-git.awk > vc
|
|
if [ "$mod" = 1 ]
|
|
then
|
|
git status |gawk -v script=status -f ./resources/vc-git.awk >> vc
|
|
fi
|