/[webwml]/cron/parts/7doc
ViewVC logotype

Contents of /cron/parts/7doc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations) (download)
Fri Dec 3 20:40:23 2010 UTC (2 years, 5 months ago) by taffit-guest
Branch: MAIN
Changes since 1.29: +1 -1 lines
Revert my previous change, and rename pt-br to pt_BR on the website as proposed in <20100406221005.GB15316@dedibox.ebzao.info>
1 #!/bin/bash -e
2
3 # This file updates the doc/ directory of the web pages
4
5 # Oh, how I wish the -doc people would maintain this. -- Jay Treacy
6 # There ain't no such thing as the -doc people these days :/ -- Josip Rodin
7
8 # ftpdir is *not* the full archive, it's populated by 1ftpfiles
9
10 . `dirname $0`/../common.sh
11 webdocdir=$webdir/doc
12 ftpdocdir=$ftpdir/doc
13
14 cd $crondir/tmp
15
16 echo -n "Installing documents:"
17
18 test -d $webdocdir/packaging-manuals || install -d -m 2775 $webdocdir/packaging-manuals
19
20 echo -n " debian-faq"
21 ln -sf manuals/debian-faq $webdocdir/FAQ
22
23 # the next few are from the same debian-policy .deb package
24 dpdeb=`ls -t1 $ftpdir/pool/main/d/debian-policy/debian-policy_*.deb | head -1`
25 dpkg-deb -x $dpdeb dp
26
27 install_policy_doc () {
28 document="$1"
29 target="$2"
30 target="$webdocdir/$target/"
31 pathprefix="$3/"
32 htmlsingle="$4"
33
34 echo -n " $document"
35 test -d "$target" || install -d -m 2775 "$target"
36 if [ -n "$htmlsingle" ]; then
37 install -p -m 664 dp/usr/share/doc/debian-policy/${pathprefix}${document}.html "$target"
38 else
39 install -p -m 664 dp/usr/share/doc/debian-policy/${pathprefix}${document}.html/* "$target"
40 fi
41 for format in ps pdf txt; do
42 file="dp/usr/share/doc/debian-policy/${pathprefix}${document}.${format}.gz"
43 [ -e $file ] && \
44 install -p -m 664 "$file" "$target"
45 done
46 }
47
48 install_policy_doc policy debian-policy
49 install_policy_doc fhs-2.3 packaging-manuals/fhs fhs yes
50 install_policy_doc menu-policy packaging-manuals/menu-policy
51 install_policy_doc perl-policy packaging-manuals/perl-policy
52 install_policy_doc mime-policy packaging-manuals/mime-policy
53
54 echo -n " upgrading-checklist"
55 zcat dp/usr/share/doc/debian-policy/upgrading-checklist.txt.gz > dp/upgrading-checklist.txt
56 install -p -m 664 dp/upgrading-checklist.txt $webdocdir/packaging-manuals/
57
58 echo -n " virtual-package-names"
59 zcat dp/usr/share/doc/debian-policy/virtual-package-names-list.txt.gz > dp/virtual-package-names-list.txt
60 install -p -m 664 dp/virtual-package-names-list.txt $webdocdir/packaging-manuals/
61
62 echo -n " debconf_specification"
63 install -p -m 664 dp/usr/share/doc/debian-policy/debconf_specification.html $webdocdir/packaging-manuals/
64
65 echo -n " libc6-migration"
66 zcat dp/usr/share/doc/debian-policy/libc6-migration.txt.gz > dp/libc6-migration.txt
67 install -p -m 664 dp/libc6-migration.txt $webdocdir/packaging-manuals/
68
69 # done with the debian-policy package stuff
70 rm -rf dp
71
72 echo -n " maint-guide"
73 ln -sf manuals/maint-guide $webdocdir/maint-guide
74
75 echo -n " build-essential"
76 bedeb=`ls -t1 $ftpdir/pool/main/b/build-essential/build-essential_*.deb | head -1`
77 dpkg-deb -x $bedeb be
78 install -p -m 664 be/usr/share/doc/build-essential/list $webdocdir/packaging-manuals/build-essential
79 rm -rf be
80
81 echo -n " menu"
82 medeb=`ls -t1 $ftpdir/pool/main/m/menu/menu_*.deb | head -1`
83 dpkg-deb -x $medeb me
84 test -d $webdocdir/packaging-manuals/menu.html || install -d -m 2775 $webdocdir/packaging-manuals/menu.html
85 install -p -m 664 me/usr/share/doc/menu/html/* $webdocdir/packaging-manuals/menu.html/
86 rm -rf me
87
88 echo -n " emacsen-policy"
89 epdeb=`ls -t1 $ftpdir/pool/main/e/emacsen-common/emacsen-common_*.deb | head -1`
90 dpkg-deb -x $epdeb ep
91 zcat ep/usr/share/doc/emacsen-common/debian-emacs-policy.gz > ep/debian-emacs-policy
92 install -p -m 664 ep/debian-emacs-policy $webdocdir/packaging-manuals/
93 rm -rf ep
94
95 echo -n " java-policy"
96 jcdeb=`ls -t1 $ftpdir/pool/main/j/java-common/java-common_*.deb | head -1`
97 dpkg-deb -x $jcdeb jc
98 test -d $webdocdir/packaging-manuals/java-policy || install -d -m 2775 $webdocdir/packaging-manuals/java-policy
99 install -p -m 664 jc/usr/share/doc/java-common/debian-java-policy/*.html $webdocdir/packaging-manuals/java-policy/
100 rm -rf jc
101
102 # deprecated dpkg-doc from snapshot.debian.org
103 echo -n " dpkg-internals"
104 dddeb=`ls -t1 $ftpdir/debian/*/pool/main/d/dpkg/dpkg-doc_*.deb | head -1`
105 dpkg-deb -x $dddeb dd
106 test -d $webdocdir/packaging-manuals/dpkg-internals || install -d -m 2775 $webdocdir/packaging-manuals/dpkg-internals
107 install -p -m 664 dd/usr/share/doc/dpkg/internals/* $webdocdir/packaging-manuals/dpkg-internals/
108 rm -rf dd
109
110 echo -n " python-policy"
111 pydeb=`ls -t1 $ftpdir/pool/main/p/python-defaults/python_*.deb | head -1`
112 dpkg-deb -x $pydeb py
113 test -d $webdocdir/packaging-manuals/python-policy || install -d -m 2775 $webdocdir/packaging-manuals/python-policy
114 install -p -m 664 py/usr/share/doc/python/python-policy.html/* $webdocdir/packaging-manuals/python-policy/
115 rm -rf py
116
117 echo -n " debian-refcard"
118 drdeb=`ls -t1 $ftpdir/pool/main/r/refcard/debian-refcard_*.deb | head -1`
119 dpkg-deb -x $drdeb dr
120 test -d $webdocdir/manuals/refcard || install -d -m 2775 $webdocdir/manuals/refcard
121 for refcardfile in dr/usr/share/doc/debian-refcard/*a4.pdf.gz ; do
122 # rename from refcard-fr-a4.pdf.gz to refcard.fr.pdf as expected by the website
123 futurename=`echo $refcardfile | sed 's/refcard-\(\w*\)-a4.pdf.gz/refcard.\1.pdf/'`
124 gunzip -f $refcardfile && mv dr/usr/share/doc/debian-refcard/$(basename $refcardfile .gz) $futurename
125 done
126 install -p -m 664 dr/usr/share/doc/debian-refcard/*pdf $webdocdir/manuals/refcard/
127 rm -rf dr
128
129 echo
130
131 # still not accounted for: libc5-libc6-Mini-HOWTO
132 # joy has sent a mail to Craig Sanders asking about that and the rest of the
133 # bo->hamm upgrade files to be added to people.d.o/~cas/ but there was no reply
134 # (this also affects things under /releases/hamm)
135
136 echo

  ViewVC Help
Powered by ViewVC 1.1.5