diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2007-12-12 12:54:11 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-12 12:54:11 -0600 |
commit | 9d55bf8c6310915ce1be1b3c324690f1dee2b279 (patch) | |
tree | c61df2c244a4011824eed6a49e25b4c5fcaa867c | |
parent | 56aca787303e57536a511156d961b40a52c361dd (diff) | |
download | mock-9d55bf8c6310915ce1be1b3c324690f1dee2b279.tar.gz mock-9d55bf8c6310915ce1be1b3c324690f1dee2b279.tar.xz mock-9d55bf8c6310915ce1be1b3c324690f1dee2b279.zip |
auto generate AUTHORS file from git.
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | Makefile.am | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index e69de29..0000000 --- a/AUTHORS +++ /dev/null diff --git a/Makefile.am b/Makefile.am index 844c824..30db941 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,10 +52,14 @@ pkgpython_PYTHON = \ CLEANFILES += py/*.pyc py/mock/*.pyc py/mock/plugins/*.pyc -dist: ChangeLog +dist: ChangeLog AUTHORS ChangeLog: (GIT_DIR=.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) +AUTHORS: + (GIT_DIR=.git git-log | grep ^Author | sort |uniq > .authors.tmp && mv .authors.tmp AUTHORS; rm -f .authors.tmp) || (touch AUTHORS; echo 'git directory not found: installing possibly empty AUTHORS.' >&2) + + REPLACE_VARS_ON_INSTALL=$(sbindir)/mock.py install-exec-hook: for i in $(REPLACE_VARS_ON_INSTALL); do \ |