Commit 2f0f5602 authored by bgm's avatar bgm

bin/extractor.php: fix for extension extraction.. argv was not a variable...

bin/extractor.php: fix for extension extraction.. argv was not a variable available in that scope, so js/tpl extraction mostly failed, depending on the extension..
parent f26b251c
......@@ -108,7 +108,7 @@ function jsExtraction($dir, $component, $jsModifier) {
$jsExtractor = dirname(__FILE__) . '/js-extractor.php';
$command = "find $dir/js $dir/templates $dir/xml $jsModifier | grep -v '/\.svn/' | sort | xargs $jsExtractor $dir";
if ($argv[1] == 'extension') {
if ($component == 'extension') {
$command = "find ./ | grep -vE '\.(git|svn)/' | sort | xargs $jsExtractor $dir";
}
......@@ -125,7 +125,7 @@ function smartyExtraction($dir, $component, $smartyModifier) {
$smartyExtractor = dirname(__FILE__) . '/smarty-extractor.php';
$command = "find $dir/templates $dir/xml $smartyModifier | grep -v '/\.svn/' | sort | xargs $smartyExtractor $dir";
if ($argv[1] == 'extension') {
if ($component == 'extension') {
$command = "find $dir/templates $dir/xml $smartyModifier | grep -vE '\.(svn|git)/' | sort | xargs $smartyExtractor $dir";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment