removing dopo.sh call, and compiling .mo at packaging time.

This commit is contained in:
Benjamin Sonntag 2012-08-21 15:32:31 +00:00
parent 225d93c1c0
commit 876d422778
3 changed files with 7 additions and 3 deletions

View File

@ -240,9 +240,6 @@ EOF
# Apache will not start without this file # Apache will not start without this file
touch /var/alternc/apache-vhost/vhosts_all.conf touch /var/alternc/apache-vhost/vhosts_all.conf
# Update l18n files
/usr/share/alternc/install/dopo.sh
#squirrelmail fix #squirrelmail fix
chown -R :alterncpanel /var/lib/squirrelmail/data chown -R :alterncpanel /var/lib/squirrelmail/data
chmod -R g+w /var/lib/squirrelmail chmod -R g+w /var/lib/squirrelmail

2
debian/rules vendored
View File

@ -26,6 +26,7 @@ build: build-stamp
build-stamp: build-stamp:
dh_testdir dh_testdir
/usr/bin/msgfmt po/fr/LC_MESSAGES/alternc-admintools.po -o po/fr/LC_MESSAGES/alternc-admintools.mo /usr/bin/msgfmt po/fr/LC_MESSAGES/alternc-admintools.po -o po/fr/LC_MESSAGES/alternc-admintools.mo
find bureau/locales -mindepth 2 -maxdepth 2 -type d -name "LC_MESSAGES" -exec msgfmt "{}/alternc" -o "{}/alternc.mo" \;
touch build-stamp touch build-stamp
clean: clean:
@ -34,6 +35,7 @@ clean:
rm -f build-stamp rm -f build-stamp
debconf-updatepo debconf-updatepo
dh_clean dh_clean
find bureau/locales -mindepth 3 -maxdepth 3 -type d -name "alternc.mo" -delete
install: DH_OPTIONS= install: DH_OPTIONS=
install: build install: build

View File

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
#### THIS SCRIPT IS NO LONGER USED, BUT MAY BE USED
#### BY NON-STANDARD EXTENSIONS OF ALTERNC
#### WE ARE NOW USING A UNIQ CENTRALIZED PO FILE FOR OUR TRANSLATIONS,
#### WHICH IS THE RESULT OF A MSGCAT OF ALL PO FILES FROM EVERYWHERE ;)
# AlternC Language file builder # AlternC Language file builder
# THIS SCRIPT MUST BE LAUNCHED EACH TIME A MODULE IS ADDED OR REMOVED FROM ALTERNC # THIS SCRIPT MUST BE LAUNCHED EACH TIME A MODULE IS ADDED OR REMOVED FROM ALTERNC
# eg: alternc-procmailbuilder, alternc-mailman ... # eg: alternc-procmailbuilder, alternc-mailman ...