summaryrefslogtreecommitdiffstats
path: root/configuration/cv-git.awk
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2013-03-01 12:44:16 +0100
committerDavid A. Madore <david+git@madore.org>2013-03-01 12:44:16 +0100
commit551326a03fd5023db95e086058db78ed874db1e9 (patch)
treee69fe23d109a1cbff102dadc0927f906725e643e /configuration/cv-git.awk
parentc692886507751ff93cf22d6a5dff4a7a65069ea0 (diff)
downloadgalois-551326a03fd5023db95e086058db78ed874db1e9.tar.gz
galois-551326a03fd5023db95e086058db78ed874db1e9.tar.bz2
galois-551326a03fd5023db95e086058db78ed874db1e9.zip
Suppression anciens fichiers de config.
• La nouvelle config est maintenant dans le répertoire config/ • La bibliographie est dans biblio/ • On utilise les fichiers AMS standards de la TeXlive.
Diffstat (limited to 'configuration/cv-git.awk')
-rw-r--r--configuration/cv-git.awk71
1 files changed, 0 insertions, 71 deletions
diff --git a/configuration/cv-git.awk b/configuration/cv-git.awk
deleted file mode 100644
index 55b2492..0000000
--- a/configuration/cv-git.awk
+++ /dev/null
@@ -1,71 +0,0 @@
-# This is file 'vc-git.awk' from the vc bundle for TeX.
-# The original file can be found at CTAN:support/vc.
-# This file is Public Domain.
-BEGIN {
-
-### Process output of "git status".
- if (script=="status") {
- modified = 0
- }
-}
-### Process output of "git log".
-script=="log" && /^Hash:/ { Hash = substr($0, 2+match($0, ":")) }
-script=="log" && /^Abr. Hash:/ { AbrHash = substr($0, 2+match($0, ":")) }
-script=="log" && /^Parent Hashes:/ { ParentHashes = substr($0, 2+match($0, ":")) }
-script=="log" && /^Abr. Parent Hashes:/ { AbrParentHashes = substr($0, 2+match($0, ":")) }
-script=="log" && /^Author Name:/ { AuthorName = substr($0, 2+match($0, ":")) }
-script=="log" && /^Author Email:/ { AuthorEmail = substr($0, 2+match($0, ":")) }
-script=="log" && /^Author Date:/ { AuthorDate = substr($0, 2+match($0, ":")) }
-script=="log" && /^Committer Name:/ { CommitterName = substr($0, 2+match($0, ":")) }
-script=="log" && /^Committer Email:/ { CommitterEmail = substr($0, 2+match($0, ":")) }
-script=="log" && /^Committer Date:/ { CommitterDate = substr($0, 2+match($0, ":")) }
-### Process output of "git status".
-### Changed index?
-script=="status" && /^# Changes to be committed:/ { modified = 1 }
-### Unstaged modifications?
-script=="status" && /^# Changed but not updated:/ { modified = 2 }
-END {
-
-### Process output of "git log".
- if (script=="log") {
-### Standard encoding is UTF-8.
- if (Encoding == "") Encoding = "UTF-8"
-### Extract relevant information from variables.
- Date = strftime("%Y-%-m-%-d",CommitterDate)
- Heures = strftime("%-H",CommitterDate)
- Minutes = strftime("%-M",CommitterDate)
-### Write Git specific macros.
- print "\\gdef\\GITHash{" Hash "}%"
- print "\\gdef\\GITAbrHash{" AbrHash "}%"
- print "\\gdef\\GITParentHashes{" ParentHashes "}%"
- print "\\gdef\\GITAbrParentHashes{" AbrParentHashes "}%"
- print "\\gdef\\GITAuthorName{" AuthorName "}%"
- print "\\gdef\\GITAuthorEmail{" AuthorEmail "}%"
- print "\\gdef\\GITAuthorDate{" AuthorDate "}%"
- print "\\gdef\\GITCommitterName{" CommitterName "}%"
- print "\\gdef\\GITCommitterEmail{" CommitterEmail "}%"
- print "\\gdef\\GITCommitterDate{" CommitterDate "}%"
-### Write generic version control macros.
- print "%%% Define generic version control macros."
- print "\\gdef\\VCRevision{\\GITAbrHash}%"
- print "\\gdef\\VCAuthor{\\GITAuthorName}%"
- print "\\gdef\\VCDate{" Date "}%"
- print "\\gdef\\VCHM{"Heures"h" Minutes"}%"
- print "\\gdef\\VCModifiedText{\\textcolor{red}{☡ avec modifications locales !}}%"
- print "%%% Assume clean working copy."
- print "\\gdef\\VCModified{0}%"
- print "\\gdef\\VCRevisionMod{\\VCRevision}%"
- }
-
-### Process output of "git status".
- if (script=="status") {
- print "%%% Is working copy modified?"
- print "\\gdef\\VCModified{" modified "}%"
- if (modified==0) {
- print "\\gdef\\VCRevisionMod{\\VCRevision}%"
- } else {
- print "\\gdef\\VCRevisionMod{\\VCRevision~\\VCModifiedText}%"
- }
- }
-
-}