Add ldapsaisie-generate-lang-file command in debian package
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 27 Nov 2013 17:26:03 +0000 (18:26 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 27 Nov 2013 17:26:03 +0000 (18:26 +0100)
debian/bin/ldapsaisie-generate-lang-file [new file with mode: 0755]
debian/dirs
debian/rules

diff --git a/debian/bin/ldapsaisie-generate-lang-file b/debian/bin/ldapsaisie-generate-lang-file
new file mode 100755 (executable)
index 0000000..049f5a1
--- /dev/null
@@ -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 $@
index e1f018e..1cbb177 100644 (file)
@@ -1,5 +1,6 @@
 etc/ldapsaisie
 etc/ldap/schema
+usr/bin
 usr/share
 usr/share/doc/ldapsaisie
 usr/local/share
index 3f86039..915390d 100755 (executable)
@@ -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/