mirror of
https://github.com/fsr/nopanic
synced 2024-11-15 17:03:13 +01:00
link list .htaccess generation
This commit is contained in:
parent
4a516f8ba0
commit
fe0b66e6db
14
nopanic.tex
14
nopanic.tex
|
@ -34,9 +34,7 @@
|
||||||
\fi
|
\fi
|
||||||
%
|
%
|
||||||
% Link system output:
|
% Link system output:
|
||||||
% Copypasting the output of the following lines into a text file, then run and execute the result of:
|
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1"}%
|
||||||
% awk '{print "mkdir " $1 " && echo \"<?php header('\''Location: " $2 "'\''); ?>\" > " $1 "/index.php"}'
|
|
||||||
%\expandafter\g@addto@macro\expandafter\linklist\expandafter{\expandafter&\expandafter\tiny\@linknumber\ \url{#1}\\}%
|
|
||||||
%
|
%
|
||||||
\stepcounter{linkcounter}%
|
\stepcounter{linkcounter}%
|
||||||
}{%
|
}{%
|
||||||
|
@ -65,6 +63,13 @@
|
||||||
\mbox{} %brauche leeren Content für ne newpage
|
\mbox{} %brauche leeren Content für ne newpage
|
||||||
%\newpage
|
%\newpage
|
||||||
|
|
||||||
|
% Linklist output
|
||||||
|
% All this stuff needs is immediate to avoid confusion between links on the same page
|
||||||
|
\immediate\newwrite\linklistfile
|
||||||
|
\immediate\openout\linklistfile=kopimi.htaccess\relax
|
||||||
|
\immediate\write\linklistfile{RewriteEngine On}
|
||||||
|
\immediate\write\linklistfile{RewriteBase /2016}
|
||||||
|
|
||||||
\include{texte/zeitplan}
|
\include{texte/zeitplan}
|
||||||
\include{texte/checkliste_kurz}
|
\include{texte/checkliste_kurz}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
|
@ -82,6 +87,9 @@
|
||||||
\include{texte/campusplan}
|
\include{texte/campusplan}
|
||||||
\include{cover/back}
|
\include{cover/back}
|
||||||
|
|
||||||
|
% Always close your files :)
|
||||||
|
\immediate\closeout\linklistfile
|
||||||
|
|
||||||
%to be merged and deleted: {zih}, {fsr, auditorium}, {danksagung}
|
%to be merged and deleted: {zih}, {fsr, auditorium}, {danksagung}
|
||||||
%entirely deleted: fluechtlinge, cd, werbung
|
%entirely deleted: fluechtlinge, cd, werbung
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue