diff --git a/debian/bin/ldapsaisie-generate-lang-file b/debian/bin/ldapsaisie-generate-lang-file new file mode 100755 index 00000000..049f5a16 --- /dev/null +++ b/debian/bin/ldapsaisie-generate-lang-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 $@ diff --git a/debian/dirs b/debian/dirs index e1f018e5..1cbb1776 100644 --- a/debian/dirs +++ b/debian/dirs @@ -1,5 +1,6 @@ etc/ldapsaisie etc/ldap/schema +usr/bin usr/share usr/share/doc/ldapsaisie usr/local/share diff --git a/debian/rules b/debian/rules index 3f860390..915390d4 100755 --- a/debian/rules +++ b/debian/rules @@ -37,6 +37,8 @@ install: build rm -fr $(CURDIR)/debian/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.ldif $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/