Changeset 1268

Show
Ignore:
Timestamp:
09/15/04 11:37:19 (4 years ago)
Author:
anonymous
Message:

bugtrack

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config.php

    r1266 r1268  
    88require_once($root."class/local.php"); 
    99require_once($root."class/functions.php"); 
    10 require_once($root."admin/plugins/procmail_builder/m_procmail.php"); 
     10require_once($root."class/procmail_builder/m_procmail.php"); 
    1111require_once($root."class/m_err.php"); 
    1212 
  • trunk/debian/rules

    r1266 r1268  
    2323 
    2424# Add here commands to compile the package. 
    25         ./dopo.sh build 
     25        ./dopo.sh  
    2626# $(MAKE) 
    2727        touch build-stamp 
     
    3131        dh_testroot 
    3232        rm -f build-stamp configure-stamp 
    33       ./dopo.sh clean 
     33#     ./dopo.sh clean 
    3434        dh_clean 
    3535 
     
    5050        cp procmail_add.php procmail_opt.php setup.php config.php debian/alternc-procmail/usr/share/squirrelmail/plugins/procmail_builder/ 
    5151        chown -R 33.33 debian/alternc-procmail/usr/share/squirrelmail/plugins/procmail_builder/ 
    52         cp m_procmail.php procmailrc.default debian/alternc-procmail/var/alternc/bureau/admin/plugins/procmail_builder/ 
     52        cp m_procmail.php procmailrc.default debian/alternc-procmail/var/alternc/bureau/class/procmail_builder/ 
    5353        cp -R locales debian/alternc-procmail/var/alternc/bureau/  
    54         find debian/alternc-procmail/var/alternc/bureau/ -name CVS -depth -exec rm {} \; 
     54        find debian/alternc-procmail/var/alternc/bureau/ -name CVS -depth -exec rm {} -rf \; 
    5555        chown -R 33.33 debian/alternc-procmail/var/alternc/bureau/  debian/alternc-procmail/usr/share/squirrelmail/plugins/ 
    5656 
  • trunk/dopo.sh

    r1262 r1268  
    11#!/bin/sh 
    22 
    3 MO="`echo $1|sed -e 's/po$/mo/'`" 
    4 msgfmt -v -v $1 -o $MO 
    5 rm $1 
     3# AlternC Language file builder 
     4# $id$ 
     5
     6# This script build one "alternc.mo" file per language in /var/alternc/bureau/locales/ 
     7# Each alternc.mo file is build with msgfmt from a alternc.po file. 
     8# Each alternc.po file is build from a serie of .po files located in  
     9# /var/alternc/bureau/locales/<lang>/LC_MESSAGES/*.po 
     10# main.txt is included before all others .po to construct a complete alternc.po file. 
     11 
     12#  - Advantages :  
     13#    * allow to add or remove standalone modules to an existing AlternC fluently 
     14#    * only one textdomain is used in all the sources (no need to change it from module to module) 
     15#  - Drawbacks :  
     16#    * AlternC now requires gettext package to work properly 
     17#    * .mo file must be compiled at each upgrade/install 
     18 
     19function dolangs { 
     20    read A 
     21    while [ "$A" ] 
     22    do 
     23        B="$A/LC_MESSAGES" 
     24        rm -f "$B/procmail_builder.mo" 
     25        msgfmt "$B/procmail_builder.po" -o "$B/procmail_builder.mo" 
     26        read A 
     27    done 
     28
     29 
     30# Apply the function to each language 
     31find locales -type d -maxdepth 1 -mindepth 1 -name "*_*" | dolangs 
     32exit 0