1 # set url to upload 2 ftp_url = ftp://server.org/html/sini/ 3 #ftp_url = ftp://mcandrian:Welcome@ftp.testme.ch/httpdocs/ 4 # set titles of pages 5 angebot_sini_kidz_highway_title = Angebot, SiNi kid'z Highway, die flexible Kinder Betreuung in Schaan, Liechtenstein 6 highlights_sini_kidz_highway_title = Highlights, SiNi kid'z Highway, die flexible Kinder Betreuung in Schaan, Liechtenstein 7 kontakt_sini_kidz_highway_title = Kontakt, SiNi kid'z Highway, die flexible Kinderbetreuung in Schaan, Liechtenstein 8 konzept_sini_kidz_highway_title = Konzept der SiNi kid'z Highway, Kinder Betreuung in Schaan, Liechtenstein 9 kueche_sini_kidz_highway_title = Kueche, SiNi kid'z Highway, die flexible Kinder Betreuung in Schaan, Liechtenstein 10 ueber_uns_sini_kidz_highway_title = Wir ueber uns, SiNi kid'z Highway, die flexible Kinder Betreuung/Hort in Schaan, Liechtenstein 11 wo_wie_wann_sini_kidz_highway_title = Wo wie wann, SiNi kid'z Highway, die flexible Kinder Betreuung in Schaan, Liechtenstein 12 13 # basic files 14 files = 15 index.htm 16 kontakt_sini_kidz_highway.html 17 angebot_sini_kidz_highway.html 18 konzept_sini_kidz_highway.html 19 ueber_uns_sini_kidz_highway.html 20 wo_wie_wann_sini_kidz_highway.html 21 tarife_sini_kidz_highway.htm 22 kueche_sini_kidz_highway.php 23 highlights_sini_kidz_highway.html 24 sini.css 25 favicon.ico 26 files/Sini-Paedagogisches-Konzept.pdf 27 admin/index.php 28 admin/forms.php 29 30 # get all files in the 'bilder' (picture) folder 31 32 bilder = 33 :tree bilder { skipdir = AAPDIR } 34 bilder += $name 35 36 cwd = `os.getcwd()` 37 38 :rule %.html : $cwd/htmlbegin.part 39 %.part 40 $cwd/htmlend.part 41 42 tmpstring = _no.$(match)_title # is there a title for that page set? 43 @try: 44 @ title = eval( tmpstring ) 45 @except KeyError: 46 @ title = "" 47 :cat $source | :eval string.replace(stdin, 48 '@TITLE@', title) >! $(target) # replace @TITLE@ with according title 49 50 51 :attr { publish = $(ftp_url)%file% } $files $bilder 52 53 # move kontakt.html to kontakt.php because there is some php code inside. 54 # additionally replace the <?xml statement with an php echo one, because 55 # on my server <? gets also treated as php what won't work with <?xml.. 56 57 kueche_sini_kidz_highway.php : kueche_sini_kidz_highway.html 58 @import sre 59 :cat $(source) | :eval sre.sub('<\?xml.*', 60 '<?php echo \'<?xml version="1.0" encoding="iso-8859-1" ?>\'; ?>\n', 61 stdin) >! $target 62 63 all : $files 64 :publish $files $bilder 65 66 gall {virtual}: #special target for publishing the gallery 67 gallery = 68 :tree gallery { skipdir = AAPDIR|original_bilder } # | is or 69 gallery += $name 70 :attr { check = time } $gallery 71 :attr { signfile = $cwd/AAPDIR/gallery_sign } $gallery 72 :attr { publish = $(ftp_url)%file% } $gallery 73 :publish $gallery