source: projects/web/branches/VINE_6_0_REL/bin/update.sh @ 4486

Revision 4486, 1.2 KB checked in by daisuke, 13 years ago (diff)

Vine Linux 6 向けに更新

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