summaryrefslogtreecommitdiff
path: root/source3/po/genmsg
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-07-30 11:53:59 +0200
committerKai Blin <kai@samba.org>2009-07-30 11:53:59 +0200
commit35806ebe67d4ca7759bfd1ea69eddc44d6d4fde1 (patch)
treee9b308a6d10fab1de7774e9f79f0be988a7bbd30 /source3/po/genmsg
parenta7f6c839bafeb8c163cec1c8b73603637621faa7 (diff)
downloadsamba-35806ebe67d4ca7759bfd1ea69eddc44d6d4fde1.tar.gz
samba-35806ebe67d4ca7759bfd1ea69eddc44d6d4fde1.tar.bz2
samba-35806ebe67d4ca7759bfd1ea69eddc44d6d4fde1.zip
s3 po: Make adding translated files less tedious
Diffstat (limited to 'source3/po/genmsg')
-rwxr-xr-xsource3/po/genmsg22
1 files changed, 16 insertions, 6 deletions
diff --git a/source3/po/genmsg b/source3/po/genmsg
index 92fd71cd7a..64df29e1ec 100755
--- a/source3/po/genmsg
+++ b/source3/po/genmsg
@@ -1,5 +1,6 @@
#!/bin/sh
# Copyright (C) 2003 TAKAHASHI Motonobu <monyo@samba.org>
+# Copyright (C) 2009 Kai Blin <kai@samba.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -14,12 +15,21 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
-NET_FILES="../utils/net.c ../utils/net_ads.c ../utils/net_ads_gpo.c"
-NET_FILES="${NET_FILES} ../utils/net_afs.c ../utils/net_cache.c"
-NET_FILES="${NET_FILES} ../utils/net_conf.c ../utils/net_dom.c"
-NET_FILES="${NET_FILES} ../utils/net_eventlog.c ../utils/net_file.c"
-NET_FILES="${NET_FILES} ../utils/net_group.c ../utils/net_groupmap.c"
-NET_FILES="${NET_FILES} ../utils/net_help.c ../utils/net_help_common.c"
+add_basedir_to_filelist() {
+ BASEDIR="$1"
+ shift;
+ FILELIST="$@"
+ FULL_LIST=""
+ for file in ${FILELIST}; do
+ FULL_LIST="${FULL_LIST} $BASEDIR/${file}"
+ done
+ echo ${FULL_LIST}
+}
+
+NET_FILES=`add_basedir_to_filelist ../utils net.c net_ads.c net_ads_gpo.c \
+ net_afs.c net_cache.c net_conf.c net_dom.c net_eventlog.c \
+ net_file.c net_group.c net_groupmap.c net_help.c net_help_common.c`
+
FILES="../web/swat.c ../web/statuspage.c ../param/loadparm.c ${NET_FILES}"
LANGS='en ja tr pl fr de it ru'