summaryrefslogtreecommitdiffstats
path: root/tools/scripts
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-11 19:17:56 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-11 19:17:56 +0545
commit97bc6c7868b4e6c7c04d7328de656190251bc012 (patch)
treef7678b351d91691df929693445bd2022768e253f /tools/scripts
parent941939ee1fbf588395604f0c2805a0f3d4c30231 (diff)
downloadpfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.zip
pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.tar.gz
Random stuff in tools folder tree
White space and text or comment typos only - nothing functional.
Diffstat (limited to 'tools/scripts')
-rwxr-xr-xtools/scripts/generate-privdefs.php6
-rwxr-xr-xtools/scripts/update_package_pfPorts.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/scripts/generate-privdefs.php b/tools/scripts/generate-privdefs.php
index fb1f09b..553be1e 100755
--- a/tools/scripts/generate-privdefs.php
+++ b/tools/scripts/generate-privdefs.php
@@ -100,7 +100,7 @@ foreach ($found as $fname)
echo "--Generating privilege definitions--\n";
$privdef = $prefix."etc/inc/priv.defs.inc";
-$fp = fopen($privdef,"w");
+$fp = fopen($privdef, "w");
if (!$fp) {
echo "unable to open {$privdef}\n";
exit -2;
@@ -196,7 +196,7 @@ echo "--Checking for pages without privilege definitions--\n";
foreach ($found as $fname) {
$match = false;
foreach ($pages_current as $pname => $pdesc) {
- if (!strcmp($pname,$fname)) {
+ if (!strcmp($pname, $fname)) {
$match = true;
break;
}
@@ -210,7 +210,7 @@ echo "--Checking for stale privilege definitions--\n";
foreach ($pages_current as $pname => $pdesc) {
$match = false;
foreach ($found as $fname) {
- if (!strncmp($fname,$pname,strlen($fname))) {
+ if (!strncmp($fname, $pname, strlen($fname))) {
$match = true;
break;
}
diff --git a/tools/scripts/update_package_pfPorts.php b/tools/scripts/update_package_pfPorts.php
index 7536b36..3962ae0 100755
--- a/tools/scripts/update_package_pfPorts.php
+++ b/tools/scripts/update_package_pfPorts.php
@@ -55,7 +55,7 @@ $opts .= "t:"; // Path to ports tree repo
$options = getopt($opts);
-if(!isset($options['x']))
+if (!isset($options['x']))
usage();
// Set the XML filename that we are processing
@@ -85,7 +85,7 @@ if (is_dir("{$src_dir}/etc/inc")) {
}
$pkgs = parse_xml_config_pkg($xml_filename, "pfsensepkgs");
-if(!$pkgs) {
+if (!$pkgs) {
echo "!!! An error occurred while trying to process {$xml_filename}. Exiting.\n";
exit;
}
@@ -101,7 +101,7 @@ if (isset($options['p'])) {
$pfs_version = trim(file_get_contents("{$src_dir}/etc/version"));
-foreach($pkgs['packages']['package'] as $pkg) {
+foreach ($pkgs['packages']['package'] as $pkg) {
if (isset($pkg_list) && !in_array(strtolower($pkg['name']), $pkg_list))
continue;
OpenPOWER on IntegriCloud