credits 670 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. awkprog='
  3. BEGIN { FS = "\n|\r\n|\r"; RS = "" }
  4. { print "CREDIT_LINE(\""$1"\", \""$2"\");" }'
  5. for what in ext sapi
  6. do
  7. file=ext/standard/credits_$what.h
  8. cat >$file <<END
  9. /*
  10. DO NOT EDIT THIS FILE!
  11. it has been automaticaly created by php5/scripts/credits from
  12. the information found in the various php5/ext/.../CREDITS and
  13. php5/sapi/.../CREDITS files
  14. if you want to change an entry you have to edit the appropriate
  15. CREDITS file instead
  16. */
  17. END
  18. # Do not process skeleton #
  19. files=`find "$what" -name CREDITS | grep -v "$what"/skeleton/CREDITS`
  20. awk "$awkprog" $files | sort -f | uniq >> $file
  21. echo "Updated $file"
  22. done