Açıklama Yok

contributors.sh 746B

12345678910111213141516171819202122
  1. git log --pretty="%an <%ae>" | sort |uniq > CONTRIBUTORS.md
  2. sed -i.bak '/xeiyan@gmail.com/d' ./CONTRIBUTORS.md
  3. rm CONTRIBUTORS.md.bak
  4. echo "list contributors .."
  5. cat CONTRIBUTORS.md
  6. echo "update package.json .."
  7. node -e "var fs = require('fs');\
  8. var json = JSON.parse(fs.readFileSync('./package.json'));\
  9. var contributors = String(fs.readFileSync('./CONTRIBUTORS.md')).split(/[\r\n]/);\
  10. json.contributors = contributors;\
  11. var distJSON = JSON.parse(fs.readFileSync('./src/package.json'));\
  12. distJSON.contributors = contributors;\
  13. fs.writeFileSync('./src/package.json', JSON.stringify(distJSON, null, 2));\
  14. fs.writeFileSync('./package.json', JSON.stringify(json, null, 2));"
  15. echo "done"