Created
November 22, 2011 16:08
-
-
Save alister/1386020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIR=`readlink -f $0` | |
DIR=`dirname $DIR` | |
DIR=`readlink -f $DIR/..` | |
# ignoring the .svn subdirs, *.sh files, temp files or backups | |
# find files changed in the last day | |
FIND=`find $DIR/ -mtime 0 ! -name '*\.sh' ! -iname '\.bak' | |
! -iname '*~' -type f ! -name \.svn \ | |
| grep -v \.svn | grep -v '/tmp/' ` | |
test -n '$FIND' && clear && \\ | |
echo "The following files have changed: \n$FIND\n" | |
# if there are no files, exit. | |
test -z "$FIND" && exit | |
# OK, there may be something new to document - run it | |
# phpXref (http://phpxref.sourceforge.net/) | |
./phpxref-0.7/phpxref.pl | |
# and the PHPdocs | |
phpdoc -c phpdoc.ini $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment