--> Bowling Center Buchs - Schweiz

 1 # set url to upload (dont' forget the slach at the end)
 2 ftp_url = ftp://user:pass@server.org/html/b-c-r/
 3 
 4 # set titles of pages
 5 index_title = Bowling Center Rheintal Buchs / Widnau, Bowlingcenter, Bowling Bedarf, Bowling in St. Gallen
 6 bowling_center_rheintal_startseite_title = Bowling Center Rheintal Buchs (St. Gallen), Ostschweiz, Schweiz
 7 bowling_center_rheintal_info_title = Info, Preise - Bowling Center Rheintal Buchs
 8 bowling_center_rheintal_wochenprogramm_title = Wochenprogramm - Bowling Center Rheintal Buchs
 9 bowling_center_rheintal_news_highlights_title = News / Highlights - Bowling Center Rheintal
10 bowling_center_rheintal_turniere_title = Turniere - Bowling Center Rheintal
11 bowling_center_rheintal_black_light_bowling_title = Black Light - Bowling Center Rheintal Buchs
12 bowling_center_rheintal_pro_shop_title = Pro Shop - Bowling Center Rheintal
13 bowling_center_rheintal_praesentationen_title = Präsentationen - Bowling Center Rheintal Buchs
14 bowling_center_rheintal_bowling_regeln_title = Bowling Regeln - Bowling Center Rheintal Buchs
15 bowling_center_rheintal_bar_title = Bar - Bowling Center Rheintal Buchs
16 bowling_center_rheintal_billard_title = Billard/Dart/Tischfussball/etc - Bowling Center Rheintal Buchs
17 bowling_center_rheintal_kinder_ecke_title = Kinder Ecke - Bowling Center Rheintal Buchs
18 bowling_center_rheintal_reservationen_title = Reservationen - Bowling Center Rheintal Buchs
19 bowling_center_rheintal_kontakt_title = Kontakt - Bowling Center Rheintal Buchs
20 
21 # basic files
22 files =
23     index.htm
24     bowling_center_rheintal_startseite.php
25     bowling_center_rheintal_info.php
26     bowling_center_rheintal_wochenprogramm.php
27     bowling_center_rheintal_news_highlights.php
28     bowling_center_rheintal_turniere.php
29     bowling_center_rheintal_black_light_bowling.php
30     bowling_center_rheintal_pro_shop.php
31     bowling_center_rheintal_praesentationen.php
32     bowling_center_rheintal_bowling_regeln.php
33     bowling_center_rheintal_bar.php
34     bowling_center_rheintal_billard.php
35     bowling_center_rheintal_kinder_ecke.php
36     bowling_center_rheintal_kontakt.php
37     bowling_center_rheintal_reservationen.php
38     htmlbegin.include   # for newsletter, gaestebuch
39     htmlend.include
40     bcr.css
41     favicon.ico
42     ie.css
43 
44 :tree bilder { skipdir = AAPDIR|zzz }
45    files += $name
46 :tree imagetmp { skipdir = AAPDIR|zzz }
47    files += $name
48 :tree pdf { skipdir = AAPDIR|zzz }
49    files += $name
50 :tree praesentationen { skipdir = AAPDIR|zzz }
51    files += $name
52 :tree videos { skipdir = AAPDIR|zzz }
53    files += $name
54 :tree admin { skipdir = AAPDIR|zzz }
55    files += $name
56 
57 :tree newsletter { skipdir = AAPDIR|zzz }
58    files += $name
59 :tree gaestebuch { skipdir = AAPDIR }
60    files += $name
61 
62 cwd = `os.getcwd()`
63 
64 :rule {sourceexists} %.php : $cwd/htmlbegin.part  # {sourceexits} only when .part exists
65                              %.part
66                              $cwd/htmlend.part
67     tmpstring = _no.$(match)_title # is there a title for that page set?
68     @import re
69     @try:
70     @  title = eval( tmpstring )
71     @except KeyError:
72     @  title = ""
73     :cat $(source) | :eval string.replace(stdin,
74            '@TITLE@', title) >!  $(target)
75 
76 htmlbegin.include : htmlbegin.part
77     :cat $(source) | :eval string.replace(stdin,
78            '@TITLE@', '<?php echo $titel; ?>') >!  $(target)
79 
80 htmlend.include : htmlend.part
81     :cat $(source) | :eval string.replace(stdin,
82            '@TITLE@', '<?php echo $titel; ?>') >!  $(target)
83 
84 :attr { publish = $(ftp_url)%file% } $files
85 
86 all : $files
87     :publish $files