Skip to content

Commit a915f3b

Browse files
authored
Merge pull request #47 from jdarwood007/updateRunTools30b
[3.0] Allow running runTools.sh from any directory
2 parents 8034723 + 7148511 commit a915f3b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

runTools.sh

100644100755
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/bash
2+
CURDIR=`dirname -- "$( readlink -f -- "$0"; )";`
23

34
find . -type f -name "*.php" -print0 \
45
| xargs -0 -n1 -P4 php -l \
56
| (! grep -v "No syntax errors detected" )
67

7-
php check-signed-off.php
8-
php check-eof.php
9-
php check-smf-license.php
10-
php check-smf-languages.php
11-
php check-version.php
8+
php $CURDIR/check-signed-off.php
9+
php $CURDIR/check-eof.php
10+
php $CURDIR/check-smf-license.php
11+
php $CURDIR/check-smf-languages.php
12+
php $CURDIR/check-version.php

0 commit comments

Comments
 (0)