modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / pandoc / vc-base / vc
blob5c5a1b32fa65f3450e359092f802194517ea5e5d
1 #!/bin/sh
2 # This is file 'vc' from the vc bundle for TeX.
3 # The original file can be found at CTAN:support/vc.
4 # This file is Public Domain.
6 # Parse command line options.
7 full=0
8 mod=0
9 while [ -n "$(echo $1 | grep '-')" ]; do
10 case $1 in
11 -f ) full=1 ;;
12 -m ) mod=1 ;;
13 * ) echo 'usage: vc [-f] [-m]'
14 exit 1
15 esac
16 shift
17 done
18 # English locale.
19 LC_ALL=C
20 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 vc-git.awk > vc.tex
21 if [ "$mod" = 1 ]
22 then
23 git status |gawk -v script=status -f vc-git.awk >> vc.tex