Add ldapsaisie-generate-lang-file command in debian package

This commit is contained in:
Benjamin Renard 2013-11-27 18:26:03 +01:00
parent 1be3b31c10
commit 3c2f8b1120
3 changed files with 11 additions and 0 deletions

8
debian/bin/ldapsaisie-generate-lang-file vendored Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
L="$1"
[ ! -n "$1" ] && echo "Usage : $0 [lang] [lang1.php lang2.php ...]" && exit 1
cd /usr/share/ldapsaisie/lang
php generate_lang_file.php /etc/ldapsaisie/local/lang/$L/*.php $L/*.php $@

1
debian/dirs vendored
View file

@ -1,5 +1,6 @@
etc/ldapsaisie etc/ldapsaisie
etc/ldap/schema etc/ldap/schema
usr/bin
usr/share usr/share
usr/share/doc/ldapsaisie usr/share/doc/ldapsaisie
usr/local/share usr/local/share

2
debian/rules vendored
View file

@ -37,6 +37,8 @@ install: build
rm -fr $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/tmp rm -fr $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/tmp
dh_link /var/tmp/ldapsaisie /usr/share/ldapsaisie/tmp dh_link /var/tmp/ldapsaisie /usr/share/ldapsaisie/tmp
cp -fr $(CURDIR)/debian/bin/* $(CURDIR)/debian/ldapsaisie/usr/bin/
cp -f $(CURDIR)/lsexample/schema/lsexample.schema $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/ cp -f $(CURDIR)/lsexample/schema/lsexample.schema $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/
cp -f $(CURDIR)/lsexample/schema/lsexample.ldif $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/ cp -f $(CURDIR)/lsexample/schema/lsexample.ldif $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/