mirror of
https://github.com/fsr/nopanic
synced 2024-11-15 08:53:11 +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
|
||||
%
|
||||
% Link system output:
|
||||
% Copypasting the output of the following lines into a text file, then run and execute the result of:
|
||||
% 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}\\}%
|
||||
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1"}%
|
||||
%
|
||||
\stepcounter{linkcounter}%
|
||||
}{%
|
||||
|
@ -65,6 +63,13 @@
|
|||
\mbox{} %brauche leeren Content für ne 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/checkliste_kurz}
|
||||
\tableofcontents
|
||||
|
@ -82,6 +87,9 @@
|
|||
\include{texte/campusplan}
|
||||
\include{cover/back}
|
||||
|
||||
% Always close your files :)
|
||||
\immediate\closeout\linklistfile
|
||||
|
||||
%to be merged and deleted: {zih}, {fsr, auditorium}, {danksagung}
|
||||
%entirely deleted: fluechtlinge, cd, werbung
|
||||
|
||||
|
|
Loading…
Reference in a new issue