Skip to content
Permalink
Browse files
added more scripts
  • Loading branch information
Robin Schneider committed Aug 28, 2012
1 parent b408bc9 commit d86bd28e3f0d0e14d7eb239eb6ad9afab2da47c0
Showing with 1,465 additions and 0 deletions.
  1. +2 −0 scripts/LaTeX-echoCREATEDATE
  2. +6 −0 scripts/LaTeX-git-commit-count
  3. +20 −0 scripts/LaTeX-gitstats
  4. +1,437 −0 scripts/gitstats
@@ -0,0 +1,2 @@
#!/bin/bash
echo -e "\\SetCREATEDATE`date +{%Y}{%m}{%d}{%H}{%M}{%S}`\t%% {YYYY}{MM}{DD}{HH}{MM}{SS}"
@@ -0,0 +1,6 @@
#!/bin/bash
## \readgitstat{7}
reversiongit="`git-commit-count`"
shorthashgit="`git rev-parse --short HEAD`"
echo '\setcounter{reversiongit}{'${reversiongit}'}'
echo '\newcommand{\shorthashgit}{'${shorthashgit}'}'
@@ -0,0 +1,20 @@
#!/bin/bash
dirpath="files/git/stats"
###

rm -r "$dirpath"
if [ -z "$1" ]
then gitstats . "$dirpath"
else gitstats -c project_name="$1" . "$dirpath"
fi
cd "$dirpath"
for fullname in *.plot
do filename=${fullname%.plot}
sed 's/png/ps/g' "$fullname"|sed 's/ps transparent.*$/postscript/g' > "$filename-ps.plot"
gnuplot "$filename-ps.plot"
ps2pdf "$filename.ps"
pdfcrop "$filename.pdf"
rm "$filename-ps.plot" "$filename.ps" "$filename.pdf"
done
find . -name "*.dat" -delete
find . -name "*.plot" -delete

0 comments on commit d86bd28

Please sign in to comment.