Skip to content
Permalink
Browse files
Optimized.
  • Loading branch information
Robin Schneider committed Apr 21, 2013
1 parent c0ef81a commit 782b0e0e51773b02cf909600444da892c890b926
Showing with 30 additions and 13 deletions.
  1. +2 −2 MyPackages/declareDocumentVariablesRS.sty
  2. +2 −1 MyPackages/docExtensionsRS.sty
  3. +22 −8 scripts/LaTeX-git-log
  4. +4 −2 scripts/tlmgr-update
@@ -100,8 +100,8 @@
Die aktuelle Version }{}ist als PDF Datei unter \printURLshort abrufbar.
\LanguageURLlongExtension%
\end{minipage}%
\ifthenelse{\lengthtest{\textwidth > 815pt}} %% für lernator.de-Statistiken
{\hspace{1.5cm}~}{}
\ifthenelse{\lengthtest{\textwidth > 815pt}}% %% für lernator.de-Statistiken
{\hspace{1.5cm}~}{}%
\end{center}%
}%
\printGitURLlong%
@@ -21,7 +21,8 @@
% description={},
}

\newcommand{\printendsignature}[1][]{%
\newcommand{\printendsignature}[1][]{%% Empty line is needed

{ \Centering%
\ifthenelse{\( \equal{#1}{with-typesetter} \OR \equal{\value{Author@ChosenNumber}}{4} \) \AND
\( \NOT \equal{#1}{without-typesetter} \)}{%
@@ -9,16 +9,31 @@ use Getopt::Long;
my $print_author = 0;
my $commit_count = 1;
my $width = 0;
my $git_commit_address = 'https://github.com/ypid/document-Stundenplan/commit';
my( $git_user, $git_repo, $git_commit_address );
GetOptions ('startcommit=s' => \$commit_count,
'author' => \$print_author,
'width=s' => \$width,
'git-c-add=s' => \$git_commit_address,
'git-c-add=s' => \$git_commit_address,
'user=s' => \$git_user,
'repo=s' => \$git_repo,
);
my $git_remote = (split /\n/, capturex(qw(git remote -v)))[0];
if ($git_remote =~ m#\s.*?:(?<user>\w+?)/(?<repo>.*?)\.git\ \(fetch\)\Z#xms) {
$git_user = $+{user};
$git_repo = $+{repo};
}
my $git_command_commit_msg = '%H';
if (defined $git_user and defined $git_repo) {
unless (defined $git_commit_address) {
$git_commit_address = "https://github.com/$+{user}/$+{repo}/commit";
}
$git_command_commit_msg = "\\href{$git_commit_address/%H}{%s}";
say "%% Base git commit URL: ". $git_commit_address;
}
if ($width) {
$width = "p{${width}cm}";
$width = "p{${width}cm}";
} else {
$width = 'l';
$width = 'l';
}
## Tags auslesen und benutzen
say '\begin{tabular}{lp{12cm}}
@@ -70,12 +85,11 @@ say '\endfoot
my @lines;
my @git_command = qw(git log --date=short --shortstat);
if ($print_author) {
@lines = reverse capturex(@git_command,
qq(--pretty=format:%d & %an & %ad & \\href{$git_commit_address/%H}{%s}));
push(@git_command, qq(--pretty=format:%d & %an & %ad & $git_command_commit_msg));
} else {
@lines = reverse capturex(@git_command,
qq(--pretty=format:%d & %ad & \\href{$git_commit_address/%H}{%s}));
push(@git_command, qq(--pretty=format:%d & %ad & $git_command_commit_msg));
}
@lines = reverse capturex(@git_command);
my $which_line = 0;
my @changes;
for (@lines) {
@@ -1,7 +1,9 @@
#!/bin/bash
#http://dante.ctan.org/mirmon/#de
#tlmgr option location http://ftp.uni-erlangen.de/mirrors/CTAN/systems/texlive/tlnet/
source /etc/profile
export http_proxy='http://knuth.intra:3128/' ## change this
export ftp_proxy=$http_proxy

## http://dante.ctan.org/mirmon/#de
tlmgr option repository http://ftp.uni-erlangen.de/mirrors/CTAN/systems/texlive/tlnet/
tlmgr update --self bin-texlive texlive.infra
tlmgr update --all

0 comments on commit 782b0e0

Please sign in to comment.