From 21e50235b527c4fd7e79039f419f1e3a52758ac6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 17 Aug 2006 06:54:04 +0000 Subject: [PATCH] Handle arguments --- docs/makepo.sh.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/makepo.sh.php b/docs/makepo.sh.php index f8b5e4b..554c021 100755 --- a/docs/makepo.sh.php +++ b/docs/makepo.sh.php @@ -22,8 +22,6 @@ require_once('/Server/htdocs/ISSO/Functions.php'); -// TODO - process $argv and translate them into xgettext arguments - // ################################################################### // generate the list of files to process @@ -72,7 +70,11 @@ foreach ($templates AS $paths) // ################################################################### // run xgettext on all of the various files that we have now created -exec('xgettext -n ' . implode(' ', $files)); +// get any arguments and just pass them to xgettext +$arguments = $argv; +unset($arguments[0]); + +exec('xgettext ' . implode(' ', $arguments) . ' ' . implode(' ', $files)); // ################################################################### // remove all the files we no longer need -- 2.22.5