Skip to content

Commit 0e56d01

Browse files
committed
Check order of menu items in info.
1 parent 8351070 commit 0e56d01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ dir: haskell-mode.info
9595
$(INSTALL_INFO) --dir=$@ $<
9696

9797
haskell-mode.tmp.texi: haskell-mode.texi
98+
@sed -n -e '/@chapter/ s/@code{\(.*\)}/\1/' \
99+
-e 's/@chapter \(.*\)$$/* \1::/p' \
100+
-e 's/@unnumbered \(.*\)$$/* \1::/p' \
101+
haskell-mode.texi > haskell-mode-menu-order.txt
102+
@sed -e '1,/@menu/ d' \
103+
-e '/end menu/,$$ d' \
104+
haskell-mode.texi > haskell-mode-content-order.txt
105+
diff -C 1 haskell-mode-menu-order.txt haskell-mode-content-order.txt
106+
@rm haskell-mode-menu-order.txt haskell-mode-content-order.txt
107+
98108
$(SUBST_ATAT) < haskell-mode.texi > haskell-mode.tmp.texi
99109

100110
haskell-mode.info: haskell-mode.tmp.texi

0 commit comments

Comments
 (0)