source: projects/web/trunk/bin/update.sh @ 9695

Revision 9695, 1.1 KB checked in by daisuke, 9 years ago (diff)

Vine Linux 7 Preview page

Line 
1#!/bin/bash
2
3mkdir -p tmp rdf html
4
5# update errata
6echo "update errata pages..."
7for i in 6x
8do
9  echo -n "$i "
10  if ( ls errata/$i/*.dat >& /dev/null ); then
11    (cd errata/$i/ ; ruby ../../bin/layout-errata.rb)
12  fi
13done
14echo "done."
15
16for i in news events vlmagazine
17do
18  echo "update $i pages..."
19  (cd $i/ ; ruby ../bin/layout-${i}.rb)
20  echo "done."
21done
22
23echo "update vineseednews..."
24echo -n "html "
25bash bin/mkpackagenews.sh VineSeed > tmp/vineseednews.html
26
27echo -n "rdf "
28bin/getpackagerdf.sh VineSeed > rdf/vineseednews.rdf
29echo "done."
30
31echo "update vineplus6news..."
32echo -n "html "
33bash bin/mkpackagenews.sh VinePlus6 > tmp/vineplus6news.html
34
35echo -n "rdf "
36bin/getpackagerdf.sh VinePlus6 > rdf/vineplus6news.rdf
37echo "done."
38
39echo "update web pages..."
40ruby bin/layout.rb
41echo "done."
42
43echo "copy special web pages..."
44find contents.d/* -type d | while read f
45do
46  cp -a $f html/
47done
48echo "done."
49
50echo "publish pages..."
51mkdir -p html
52cp -a tmp/*.html rdf/*.rdf rdf js css errata events vlmagazine gpgkey images img news html/
53find html/ -name '*.dat' -exec rm -f \{\} \;
54find html/ -name '*~' -exec rm -f \{\} \;
55rm -rf html/*/.svn html/*/*/.svn
Note: See TracBrowser for help on using the repository browser.