1 Copy the scan.l file to the build directory so that the .c file can be |
|
2 successfully generated. |
|
3 |
|
4 Run help2man on the flex file in the build directory to generate the man page. |
|
5 |
|
6 Make sure that we always use /usr/gnu/bin/m4 rather than what is available |
1 Make sure that we always use /usr/gnu/bin/m4 rather than what is available |
7 via the M4 environment variable or what's in the PATH environment variable. |
2 via the M4 environment variable or what's in the PATH environment variable. |
8 |
3 |
9 These changes have been sent upstream. See email thread starting at: |
4 This change has been sent upstream. See email thread starting at: |
10 |
5 |
11 https://sourceforge.net/p/flex/mailman/message/35103749/ |
6 https://sourceforge.net/p/flex/mailman/message/35103749/ |
12 |
7 |
13 --- flex-2.6.1/src/Makefile.am.orig 2016-05-19 06:21:16.631609293 -0700 |
|
14 +++ flex-2.6.1/src/Makefile.am 2016-05-19 14:19:29.394717203 -0700 |
|
15 @@ -87,7 +87,7 @@ |
|
16 mv skel.c.tmp $(srcdir)/skel.c |
|
17 |
|
18 stage1scan.l: scan.l |
|
19 - cp $(srcdir)/scan.l $(srcdir)/stage1scan.l |
|
20 + cp $(srcdir)/scan.l $(top_builddir)/src/stage1scan.l |
|
21 |
|
22 stage1scan.c: stage1scan.l stage1flex$(EXEEXT) |
|
23 $(top_builddir)/src/stage1flex$(EXEEXT) -o $@ $< |
|
24 --- flex-2.6.1/doc/Makefile.am.orig 2016-05-19 06:45:26.670565152 -0700 |
|
25 +++ flex-2.6.1/doc/Makefile.am 2016-05-19 06:45:45.734263762 -0700 |
|
26 @@ -26,5 +26,5 @@ |
|
27 for i in $(dist_man_MANS) ; do \ |
|
28 $(help2man) --name='$(PACKAGE_NAME)' \ |
|
29 --section=`echo $$i | sed -e 's/.*\.\([^.]*\)$$/\1/'` \ |
|
30 - $(top_srcdir)/src/flex$(EXEEXT) > $$i || rm -f $$i ; \ |
|
31 + $(top_builddir)/src/flex$(EXEEXT) > $$i || rm -f $$i ; \ |
|
32 done |
|
33 --- flex-2.6.1/src/main.c.orig 2016-05-19 14:36:18.569346881 -0700 |
8 --- flex-2.6.1/src/main.c.orig 2016-05-19 14:36:18.569346881 -0700 |
34 +++ flex-2.6.1/src/main.c 2016-05-20 07:59:04.169569771 -0700 |
9 +++ flex-2.6.1/src/main.c 2016-05-20 07:59:04.169569771 -0700 |
35 @@ -348,6 +348,7 @@ |
10 @@ -348,6 +348,7 @@ |
36 |
11 |
37 /* Setup the filter chain. */ |
12 /* Setup the filter chain. */ |