root / pykota / trunk / man / genman.sh @ 3484

Revision 3484, 2.0 kB (checked in by jerome, 15 years ago)

Removed pkmail, which was removed from PyKota anyway.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[1287]1#! /bin/sh
2#
[3259]3# PyKota - Print Quotas for CUPS
[1287]4#
[3275]5# (c) 2003, 2004, 2005, 2006, 2007, 2008 Jerome Alet <alet@librelogiciel.com>
[3259]6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
[3413]10#
[3259]11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
[3413]15#
[3259]16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <http://www.gnu.org/licenses/>.
[1287]18#
19# $Id$
20#
[3484]21for prog in pksetup \
22    pkrefund \
23    pknotify \
24    pkusers \
25    pkinvoice \
26    pkturnkey \
27    pkbcodes \
28    pkbanner \
29    autopykota \
30    dumpykota \
31    edpykota \
32    pykotme \
33    repykota \
34    warnpykota \
35    pkprinters \
36    pykosd ; do
[3263]37    echo "$prog" ;
38    help2man --no-info \
39             --section=1 \
40             --manual="User Commands" \
41             --source="C@LL - Conseil Internet & Logiciels Libres" \
42             --output="temp$prog.1" \
[3413]43             "$prog" ;
[3263]44    /bin/sed -e "s/--/\\\-\\\-/g" <"temp$prog.1" >"$prog.1" ;
45    /bin/rm -f "temp$prog.1"
[2086]46    cd ../po ;
[3413]47    for dir in * ; do
[2086]48        if [ -d $dir ] ; then
49            if [ -e $dir/pykota.po ] ; then
50                echo "  $dir" ;
51                cd ../man/$dir ;
[3263]52                help2man --no-info \
53                         --locale=$dir \
54                         --section=1 \
55                         --manual="User Commands" \
56                         --source="C@LL - Conseil Internet & Logiciels Libres" \
57                         --output="temp$prog.1" \
[3413]58                         "$prog" ;
[3263]59                /bin/sed -e "s/--/\\\-\\\-/g" <"temp$prog.1" >"$prog.1" ;
60                /bin/rm -f "temp$prog.1"
[2088]61                cd ../../po ;
[3413]62            fi ;
63        fi ;
[2086]64    done
65    cd ../man ;
[1827]66    echo ;
[1287]67done
Note: See TracBrowser for help on using the browser.