summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-11-30 23:09:28 +0000
committerReuben Thomas <rrt@sc3d.org>2010-12-08 20:29:37 +0000
commita61505239398139eec7deb64b785bfc24e5e3e54 (patch)
tree5dedb2dc20bee8accc7750478eeb596cb46c65ed
parent5db7e9e7182ea5b7e1cf40aee46b7b3b10e6e247 (diff)
downloadautoconf-archive-a61505239398139eec7deb64b785bfc24e5e3e54.tar.gz
Implement a TODO item: add set-serial to build process (and fix a comment typo in set-serial.sh).
-rw-r--r--Makefile.am1
-rw-r--r--TODO7
-rwxr-xr-xset-serial.sh2
3 files changed, 2 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index eb7e5ef..aba76df 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,4 +46,5 @@ dist-hook:
$(top_srcdir)/gen-authors.sh >$(distdir)/au-t; \
rm -f $(distdir)/AUTHORS; \
mv $(distdir)/au-t $(distdir)/AUTHORS; \
+ $(top_srcdir)/set-serial.sh $(distdir)/m4/*.m4; \
fi
diff --git a/TODO b/TODO
index 5126c68..e4c3edb 100644
--- a/TODO
+++ b/TODO
@@ -62,13 +62,6 @@
* [ ] sc_space_tab
* [ ] sc_useless_cpp_parens
-* TODO Generate serial lines automatically
-
- The script [[file:set-serial.sh][set-serial.sh]] uses the git repository to determine an appropriate
- serial number (i.e. the number of commits that have occurred) and patches
- that number into the m4 file. The solution seems to work nicely, but it isn't
- integrated into the build process yet.
-
* TODO Don't repeat license texts in Texinfo for every macro
The Texinfo documentation has a section "license" for every macro that
diff --git a/set-serial.sh b/set-serial.sh
index bc53cbf..e6aa016 100755
--- a/set-serial.sh
+++ b/set-serial.sh
@@ -18,7 +18,7 @@ for n in "$@"; do
# Update the serial number in the m4 file.
set-serial-number "$n" "$revision"
# Check whether git regards the file as "modified" now. If it does,
- # the serial nmuber needs to be bumped one more time.
+ # the serial number needs to be bumped one more time.
if ! git diff --quiet --exit-code -- "$n"; then
set-serial-number "$n" "$((revision + 1))"
fi