summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/docblocks2
-rw-r--r--admin/nobadbraces2
-rw-r--r--admin/nolonglines4
-rw-r--r--admin/open_tag2
-rw-r--r--admin/runtests4
5 files changed, 7 insertions, 7 deletions
diff --git a/admin/docblocks b/admin/docblocks
index 6764ff1..a7f05c3 100644
--- a/admin/docblocks
+++ b/admin/docblocks
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#set -e
-bad_files=$(./admin/findphp | xargs -l1 /usr/bin/env perl admin/docblocks.pl)
+bad_files=$(./admin/findphp | xargs -L 1 /usr/bin/env perl admin/docblocks.pl)
if [ "$bad_files" ]
then
diff --git a/admin/nobadbraces b/admin/nobadbraces
index 90769d3..ee060dc 100644
--- a/admin/nobadbraces
+++ b/admin/nobadbraces
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
-./admin/findphp | xargs -l1 /usr/bin/env perl admin/brace_style.pl
+./admin/findphp | xargs -L 1 /usr/bin/env perl admin/brace_style.pl
diff --git a/admin/nolonglines b/admin/nolonglines
index 48d1c7d..3e2addc 100644
--- a/admin/nolonglines
+++ b/admin/nolonglines
@@ -1,9 +1,7 @@
#!/usr/bin/env bash
files_with_long_lines=$(./admin/findphp |
- xargs -l1 wc -L |
- awk '$1 > 80 { print $2 }' |
- xargs -l1 --replace=FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
+ xargs -L 1 -I FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
if [ "$files_with_long_lines" ]
then
diff --git a/admin/open_tag b/admin/open_tag
index c9f4644..27fe1c5 100644
--- a/admin/open_tag
+++ b/admin/open_tag
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
bad_files=$(./admin/findphp |
- xargs -l1 grep -H -m 1 "<?php" -c |
+ xargs -L 1 grep -H -m 1 "<?php" -c |
grep ":0" |
awk -F: '{ print $1 }')
diff --git a/admin/runtests b/admin/runtests
index 770c5fb..6629235 100644
--- a/admin/runtests
+++ b/admin/runtests
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
-HERE=$(readlink --canonicalize $(dirname "$0"))
+# Get the absolute path containing this script
+cd $(dirname "$0")
+HERE=$PWD
test_import () {
./admin/checkimports