From 3c2f8b11200497ef3b49f6c27da453fe650c031c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 27 Nov 2013 18:26:03 +0100 Subject: [PATCH] Add ldapsaisie-generate-lang-file command in debian package --- debian/bin/ldapsaisie-generate-lang-file | 8 ++++++++ debian/dirs | 1 + debian/rules | 2 ++ 3 files changed, 11 insertions(+) create mode 100755 debian/bin/ldapsaisie-generate-lang-file 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/