Changeset 1268
- Timestamp:
- 09/15/04 11:37:19 (4 years ago)
- Files:
-
- trunk/config.php (modified) (1 diff)
- trunk/debian/rules (modified) (3 diffs)
- trunk/dopo.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config.php
r1266 r1268 8 8 require_once($root."class/local.php"); 9 9 require_once($root."class/functions.php"); 10 require_once($root." admin/plugins/procmail_builder/m_procmail.php");10 require_once($root."class/procmail_builder/m_procmail.php"); 11 11 require_once($root."class/m_err.php"); 12 12 trunk/debian/rules
r1266 r1268 23 23 24 24 # Add here commands to compile the package. 25 ./dopo.sh build25 ./dopo.sh 26 26 # $(MAKE) 27 27 touch build-stamp … … 31 31 dh_testroot 32 32 rm -f build-stamp configure-stamp 33 ./dopo.sh clean33 # ./dopo.sh clean 34 34 dh_clean 35 35 … … 50 50 cp procmail_add.php procmail_opt.php setup.php config.php debian/alternc-procmail/usr/share/squirrelmail/plugins/procmail_builder/ 51 51 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/ 53 53 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 \; 55 55 chown -R 33.33 debian/alternc-procmail/var/alternc/bureau/ debian/alternc-procmail/usr/share/squirrelmail/plugins/ 56 56 trunk/dopo.sh
r1262 r1268 1 1 #!/bin/sh 2 2 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 19 function 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 31 find locales -type d -maxdepth 1 -mindepth 1 -name "*_*" | dolangs 32 exit 0
