Skip to content

Instantly share code, notes, and snippets.

@alister
Created November 22, 2011 16:08
Show Gist options
  • Save alister/1386020 to your computer and use it in GitHub Desktop.
Save alister/1386020 to your computer and use it in GitHub Desktop.
#!/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