]> bicyclesonthemoon.info Git - ott/enhance/blob - view.awk
Initial state as of 20.09.2015
[ott/enhance] / view.awk
1 #// view.awk\r
2 #// insert text\r
3 #// 03.09.2014\r
4 #// \r
5 #// Copyright (C) 2015  Balthasar SzczepaƄski\r
6 #// \r
7 #// This program is free software: you can redistribute it and/or modify\r
8 #// it under the terms of the GNU Affero General Public License as\r
9 #// published by the Free Software Foundation, either version 3 of the\r
10 #// License, or (at your option) any later version.\r
11 #// \r
12 #// This program is distributed in the hope that it will be useful,\r
13 #// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 #// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15 #// GNU Affero General Public License for more details.\r
16 #// \r
17 #// You should have received a copy of the GNU Affero General Public License\r
18 #// along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
19 \r
20 \r
21 ###reusedfrommirror;\r
22 {\r
23         if ($0 ~ /^###sig&/)\r
24         {\r
25                 split ($0 ,arr,"&")\r
26                 system("cat " sig arr[2])\r
27         }\r
28         else if ($0 ~ /^###inf&/)\r
29         {\r
30                 split ($0 ,arr,"&")\r
31                 system("cat " otterinf arr[2])\r
32         }\r
33         else if ($0 ~ /^###prev/)\r
34         {\r
35                 print left\r
36         }\r
37         else if ($0 ~ /^###next/)\r
38         {\r
39                 print right\r
40         }\r
41         else if ($0 ~ /^###links/)\r
42         {\r
43                 system ("cat " links);\r
44         }\r
45         else if ($0 ~ /^###info/)\r
46         {\r
47                 print info;\r
48         }\r
49         else if ($0 ~ /^###title/)\r
50         {\r
51                 print title;\r
52         }\r
53         else\r
54         {\r
55                 print $0\r
56         }\r
57 };\r