summaryrefslogtreecommitdiffstats
path: root/admin/open_tag
diff options
context:
space:
mode:
authorTrevor Johns <trevor@tjohns.net>2007-12-29 08:17:29 +0000
committerTrevor Johns <trevor@tjohns.net>2007-12-29 08:17:29 +0000
commit186d29d923ba41a90c063832d64c7ddbe057592d (patch)
tree8981ec87e53e0d32555c758fd474f66289233719 /admin/open_tag
parent9a78338b6bec9447d07c482c2535d495fd01d1a8 (diff)
downloadphp-openid-186d29d923ba41a90c063832d64c7ddbe057592d.zip
php-openid-186d29d923ba41a90c063832d64c7ddbe057592d.tar.gz
php-openid-186d29d923ba41a90c063832d64c7ddbe057592d.tar.bz2
[project @ Update admin scripts to run under Mac OS X]
The scripts in admin use several non-POSIX arguments which do not work on Mac OS X. See my original post to dev@openidenabled.com: message://%3C5902A542-C723-4F0A-8478-1F33C874D1B8@tjohns.net%3E http://lists.openidenabled.com/pipermail/dev/2007-December/000979.html This patch makes the following changes to fix this: - Changed $HERE in admin/runtests to avoid calling readlink. - Calls to xargs now use '-L 1' instead of '-l1'. - Calls to 'wc -L' were eliminated.
Diffstat (limited to 'admin/open_tag')
-rw-r--r--admin/open_tag2
1 files changed, 1 insertions, 1 deletions
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 }')