]> git.pld-linux.org Git - packages/alex.git/blame - alex-debian.patch
- apply debian.patch
[packages/alex.git] / alex-debian.patch
CommitLineData
d3a0db1f
AM
1--- alex-2.0.orig/alex/doc/alex.sgml
2+++ alex-2.0/alex/doc/alex.sgml
3@@ -1330,8 +1330,8 @@
4 <term><option>-g</option></term>
5 <term><option>--ghc</option></term>
6 <listitem>
7- <para>Causes Alex to produce a parser which is optimised for
8- compiling with GHC. The parser will be significantly more
9+ <para>Causes Alex to produce a lexer which is optimised for
10+ compiling with GHC. The lexer will be significantly more
11 efficient, both in terms of the size of the compiled
12 lexer and its runtime.</para>
13 </listitem>
14@@ -1368,8 +1368,8 @@
15 <term><option>-v</option></term>
16 <term><option>--version</option></term>
17 <listitem>
18- <para>Be more verbose. This currently doesn't do
19- anything, but it might in the future.</para>
20+ <para>Print version information on standard output then exit
21+ successfully.</para>
22 </listitem>
23 </varlistentry>
24 </variablelist>
25--- alex-2.0.orig/alex/doc/alex.1.in
26+++ alex-2.0/alex/doc/alex.1.in
27@@ -0,0 +1,111 @@
28+.TH ALEX 1 "2003-09-09" "Glasgow FP Suite" "Alex Lexical Analyser Generator"
29+.SH NAME
30+alex \- the lexical analyser generator for Haskell
31+
32+.SH SYNOPSIS
33+.B alex
34+[\fIOPTION\fR]... \fIfile\fR [\fIOPTION\fR]...
35+
36+.SH DESCRIPTION
37+This manual page documents briefly the
38+.BR alex
39+command.
40+
41+.PP
42+This manual page was written for the Debian GNU/Linux distribution
43+because the original program does not have a manual page. Instead, it
44+has documentation in various other formats, including DVI, Info and
45+HTML; see below.
46+
47+.PP
48+.B Alex
49+is a lexical analyser generator system for Haskell. It is similar to the
50+tool lex or flex for C/C++.
51+
52+.PP
53+Input files are expected to be of the form
54+.I file.x
55+and
56+.B alex
57+will produce output in
58+.I file.y
59+
60+.PP
61+Caveat: When using
62+.I hbc
63+(Chalmers Haskell) the command argument structure is slightly
64+different. This is because the hbc run time system takes some flags
65+as its own (for setting things like the heap size, etc). This problem
66+can be circumvented by adding a single dash (`-') to your command
67+line. So when using a hbc generated version of Alex, the argument
68+structure is:
69+
70+.B alex \-
71+[\fIOPTION\fR]... \fIfile\fR [\fIOPTION\fR]...
72+
73+.SH OPTIONS
74+The programs follow the usual GNU command line syntax, with long
75+options starting with two dashes (`--'). A summary of options is
76+included below. For a complete description, see the other
77+documentation.
78+
79+.TP
80+.BR \-d ", " \-\-debug
81+Instructs Alex to generate a lexer which will output debugging messsages
82+as it runs.
83+
84+.TP
85+.BR \-g ", " \-\-ghc
86+Instructs Alex to generate a lexer which is optimised for compiling with
87+GHC. The lexer will be significantly more efficient, both in terms of
88+the size of the compiled lexer and its runtime.
89+
90+.TP
91+\fB\-o\fR \fIFILE\fR, \fB\-\-outfile=\fIFILE
92+Specifies the filename in which the output is to be placed. By default,
93+this is the name of the input file with the
94+.I .x
95+suffix replaced by
96+.I .hs
97+
98+.TP
99+\fB\-i\fR [\fIFILE\fR], \fB\-\-info\fR[=\fIFILE\fR]
100+Produces a human-readable rendition of the state machine (DFA) that
101+Alex derives from the lexer, in
102+.I FILE
103+(default:
104+.I file.info
105+where the input file is
106+.I file.x
107+).
108+
109+The format of the info file is currently a bit basic, and not
110+particularly informative.
111+
112+.TP
113+.BR \-v ", " \-\-version
114+Print version information on standard output then exit successfully.
115+
116+.SH FILES
117+.I @LIBDIR@
118+
119+.SH "SEE ALSO"
120+.BR @DOCDIR@ ,
121+the Alex homepage
122+.UR http://haskell.org/alex/
123+(http://haskell.org/alex/)
124+.UE
125+
126+.SH COPYRIGHT
127+Alex Version @VERSION@
128+
129+Copyright (c) 1995-2003, Chris Dornan and Simon Marlow
130+
131+.SH AUTHOR
132+This manual page was written by Ian Lynagh
133+<igloo@debian.org>, based on the happy manpage, for the Debian GNU/Linux
134+system (but may be used by others).
135+
136+.\" Local variables:
137+.\" mode: nroff
138+.\" End:
139--- alex-2.0.orig/alex/src/Main.hs
140+++ alex-2.0/alex/src/Main.hs
141@@ -48,12 +48,11 @@
142 putStrLn copyright
143 exitWith ExitSuccess
144 (_,_,errors) -> do
145- prog <- getProgName
146- die (concat errors ++ usageInfo (usageHeader prog) argInfo)
147+ die (concat errors ++ usageInfo usageHeader argInfo)
148
149 copyright = "Alex version " ++ version ++ ", (c) 2003 Chris Dornan and Simon Marlow\n"
150
151-usageHeader prog = prog ++ " [OPTION...] file"
152+usageHeader = "alex [OPTION...] file"
153
154 runAlex cli file = do
155 basename <- case (reverse file) of
156--- alex-2.0.orig/alex/src/alex.sh
157+++ alex-2.0/alex/src/alex.sh
158@@ -5,6 +5,6 @@
159 # ALEXBIN
160
161 case $* in
162-*--template*) $ALEXBIN $*;;
163-*) $ALEXBIN --template $ALEXLIB $*;;
164+*--template*) $ALEXBIN "$@";;
165+*) $ALEXBIN --template $ALEXLIB ${1+"$@"};;
166 esac
167--- alex-2.0.orig/configure.in
168+++ alex-2.0/configure.in
169@@ -195,6 +195,33 @@
170 HostOS_CPP='mingw32'
171 exeext='.exe'
172 ;;
173+mips-*-linux*)
174+ HostPlatform=mips-unknown-linux # hack again
175+ TargetPlatform=mips-unknown-linux
176+ BuildPlatform=mips-unknown-linux
177+ HostPlatform_CPP='mips_unknown_linux'
178+ HostArch_CPP='mips'
179+ HostVendor_CPP='unknown'
180+ HostOS_CPP='linux'
181+ ;;
182+hppa*-*-linux*)
183+ HostPlatform=hppa-unknown-linux # hack again
184+ TargetPlatform=hppa-unknown-linux
185+ BuildPlatform=hppa-unknown-linux
186+ HostPlatform_CPP='hppa_unknown_linux'
187+ HostArch_CPP='hppa'
188+ HostVendor_CPP='unknown'
189+ HostOS_CPP='linux'
190+ ;;
191+arm*-linux*)
192+ HostPlatform=arm-unknown-linux # hack again
193+ TargetPlatform=arm-unknown-linux
194+ BuildPlatform=arm-unknown-linux
195+ HostPlatform_CPP='arm_unknown_linux'
196+ HostArch_CPP='arm'
197+ HostVendor_CPP='unknown'
198+ HostOS_CPP='linux'
199+ ;;
200 ia64-*-linux*)
201 HostPlatform=ia64-unknown-linux # hack again
202 TargetPlatform=ia64-unknown-linux
203@@ -204,6 +231,15 @@
204 HostVendor_CPP='unknown'
205 HostOS_CPP='linux'
206 ;;
207+m68k-*-linux*)
208+ HostPlatform=m68k-unknown-linux # hack again
209+ TargetPlatform=m68k-unknown-linux
210+ BuildPlatform=m68k-unknown-linux
211+ HostPlatform_CPP='m68k_unknown_linux'
212+ HostArch_CPP='m68k'
213+ HostVendor_CPP='unknown'
214+ HostOS_CPP='linux'
215+ ;;
216 m68k-next-nextstep2)
217 HostPlatform_CPP='m68k_next_nextstep2'
218 HostArch_CPP='m68k'
219@@ -294,6 +330,15 @@
220 HostVendor_CPP='apple'
221 HostOS_CPP='darwin'
222 ;;
223+powerpc-*-linux*)
224+ HostPlatform=powerpc-unknown-linux
225+ TargetPlatform=powerpc-unknown-linux
226+ BuildPlatform=powerpc-unknown-linux
227+ HostPlatform_CPP='powerpc_unknown_linux'
228+ HostArch_CPP='powerpc'
229+ HostVendor_CPP='unknown'
230+ HostOS_CPP='linux'
231+ ;;
232 sparc-sun-sunos4*)
233 HostPlatform=sparc-sun-sunos4
234 TargetPlatform=sparc-sun-sunos4 #hack
235@@ -312,6 +357,24 @@
236 HostVendor_CPP='sun'
237 HostOS_CPP='solaris2'
238 ;;
239+sparc*-unknown-linux*)
240+ HostPlatform=sparc-unknown-linux
241+ TargetPlatform=sparc-unknown-linux
242+ BuildPlatform=sparc-unknown-linux
243+ HostPlatform_CPP='sparc-unknown-linux'
244+ HostArch_CPP='sparc'
245+ HostVendor_CPP='unknown'
246+ HostOS_CPP='linux'
247+ ;;
248+s390-ibm-linux*)
249+ HostPlatform=s390-ibm-linux
250+ TargetPlatform=s390-ibm-linux #hack
251+ BuildPlatform=s390-ibm-linux #hack
252+ HostPlatform_CPP='s390_ibm_linux'
253+ HostArch_CPP='s390'
254+ HostVendor_CPP='ibm'
255+ HostOS_CPP='linux'
256+ ;;
257 *)
258 echo "Unrecognised platform: $HostPlatform"
259 exit 1
260@@ -646,7 +709,7 @@
261 dnl ** Find lex command (lex or flex) - *doesn't* use autoconf's
262 dnl AC_PROG_LEX, since it doesn't actually check whether 'lex'
263 dnl exists if 'flex' doesn't.
264-AC_PROG_LEX_STRICT
265+dnl AC_PROG_LEX_STRICT
266
267 dnl ** figure out how to do a BSD-ish install
268 AC_PROG_INSTALL
269--- alex-2.0.orig/configure
270+++ alex-2.0/configure
271@@ -1598,6 +1598,33 @@
272 HostOS_CPP='mingw32'
273 exeext='.exe'
274 ;;
275+mips-*-linux*)
276+ HostPlatform=mips-unknown-linux # hack again
277+ TargetPlatform=mips-unknown-linux
278+ BuildPlatform=mips-unknown-linux
279+ HostPlatform_CPP='mips_unknown_linux'
280+ HostArch_CPP='mips'
281+ HostVendor_CPP='unknown'
282+ HostOS_CPP='linux'
283+ ;;
284+hppa*-*-linux*)
285+ HostPlatform=hppa-unknown-linux # hack again
286+ TargetPlatform=hppa-unknown-linux
287+ BuildPlatform=hppa-unknown-linux
288+ HostPlatform_CPP='hppa_unknown_linux'
289+ HostArch_CPP='hppa'
290+ HostVendor_CPP='unknown'
291+ HostOS_CPP='linux'
292+ ;;
293+arm*-linux*)
294+ HostPlatform=arm-unknown-linux # hack again
295+ TargetPlatform=arm-unknown-linux
296+ BuildPlatform=arm-unknown-linux
297+ HostPlatform_CPP='arm_unknown_linux'
298+ HostArch_CPP='arm'
299+ HostVendor_CPP='unknown'
300+ HostOS_CPP='linux'
301+ ;;
302 ia64-*-linux*)
303 HostPlatform=ia64-unknown-linux # hack again
304 TargetPlatform=ia64-unknown-linux
305@@ -1607,6 +1634,15 @@
306 HostVendor_CPP='unknown'
307 HostOS_CPP='linux'
308 ;;
309+m68k-*-linux*)
310+ HostPlatform=m68k-unknown-linux # hack again
311+ TargetPlatform=m68k-unknown-linux
312+ BuildPlatform=m68k-unknown-linux
313+ HostPlatform_CPP='m68k_unknown_linux'
314+ HostArch_CPP='m68k'
315+ HostVendor_CPP='unknown'
316+ HostOS_CPP='linux'
317+ ;;
318 m68k-next-nextstep2)
319 HostPlatform_CPP='m68k_next_nextstep2'
320 HostArch_CPP='m68k'
321@@ -1697,6 +1733,15 @@
322 HostVendor_CPP='apple'
323 HostOS_CPP='darwin'
324 ;;
325+powerpc-*-linux*)
326+ HostPlatform=powerpc-unknown-linux
327+ TargetPlatform=powerpc-unknown-linux
328+ BuildPlatform=powerpc-unknown-linux
329+ HostPlatform_CPP='powerpc_unknown_linux'
330+ HostArch_CPP='powerpc'
331+ HostVendor_CPP='unknown'
332+ HostOS_CPP='linux'
333+ ;;
334 sparc-sun-sunos4*)
335 HostPlatform=sparc-sun-sunos4
336 TargetPlatform=sparc-sun-sunos4 #hack
337@@ -1715,6 +1760,24 @@
338 HostVendor_CPP='sun'
339 HostOS_CPP='solaris2'
340 ;;
341+sparc*-unknown-linux*)
342+ HostPlatform=sparc-unknown-linux
343+ TargetPlatform=sparc-unknown-linux
344+ BuildPlatform=sparc-unknown-linux
345+ HostPlatform_CPP='sparc-unknown-linux'
346+ HostArch_CPP='sparc'
347+ HostVendor_CPP='unknown'
348+ HostOS_CPP='linux'
349+ ;;
350+s390-ibm-linux*)
351+ HostPlatform=s390-ibm-linux
352+ TargetPlatform=s390-ibm-linux #hack
353+ BuildPlatform=s390-ibm-linux #hack
354+ HostPlatform_CPP='s390_ibm_linux'
355+ HostArch_CPP='s390'
356+ HostVendor_CPP='ibm'
357+ HostOS_CPP='linux'
358+ ;;
359 *)
360 echo "Unrecognised platform: $HostPlatform"
361 exit 1
362@@ -3769,82 +3832,82 @@
363
364
365
366-# Extract the first word of "flex", so it can be a program name with args.
367-set dummy flex; ac_word=$2
368-echo "$as_me:$LINENO: checking for $ac_word" >&5
369-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
370-if test "${ac_cv_prog_LEX+set}" = set; then
371- echo $ECHO_N "(cached) $ECHO_C" >&6
372-else
373- if test -n "$LEX"; then
374- ac_cv_prog_LEX="$LEX" # Let the user override the test.
375-else
376-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
377-for as_dir in $PATH
378-do
379- IFS=$as_save_IFS
380- test -z "$as_dir" && as_dir=.
381- for ac_exec_ext in '' $ac_executable_extensions; do
382- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
383- ac_cv_prog_LEX="flex"
384- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
385- break 2
386- fi
387-done
388-done
389-
390-fi
391-fi
392-LEX=$ac_cv_prog_LEX
393-if test -n "$LEX"; then
394- echo "$as_me:$LINENO: result: $LEX" >&5
395-echo "${ECHO_T}$LEX" >&6
396-else
397- echo "$as_me:$LINENO: result: no" >&5
398-echo "${ECHO_T}no" >&6
399-fi
400-
401-if test -z "$LEX"
402-then
403- # Extract the first word of "lex", so it can be a program name with args.
404-set dummy lex; ac_word=$2
405-echo "$as_me:$LINENO: checking for $ac_word" >&5
406-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
407-if test "${ac_cv_prog_LEX+set}" = set; then
408- echo $ECHO_N "(cached) $ECHO_C" >&6
409-else
410- if test -n "$LEX"; then
411- ac_cv_prog_LEX="$LEX" # Let the user override the test.
412-else
413-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
414-for as_dir in $PATH
415-do
416- IFS=$as_save_IFS
417- test -z "$as_dir" && as_dir=.
418- for ac_exec_ext in '' $ac_executable_extensions; do
419- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
420- ac_cv_prog_LEX="lex"
421- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
422- break 2
423- fi
424-done
425-done
426-
427-fi
428-fi
429-LEX=$ac_cv_prog_LEX
430-if test -n "$LEX"; then
431- echo "$as_me:$LINENO: result: $LEX" >&5
432-echo "${ECHO_T}$LEX" >&6
433-else
434- echo "$as_me:$LINENO: result: no" >&5
435-echo "${ECHO_T}no" >&6
436-fi
437-
438- test -z "$LEX" && { { echo "$as_me:$LINENO: error: 'lex' or 'flex' is required to compile GHC." >&5
439-echo "$as_me: error: 'lex' or 'flex' is required to compile GHC." >&2;}
440- { (exit 1); exit 1; }; }
441-fi
442+## Extract the first word of "flex", so it can be a program name with args.
443+#set dummy flex; ac_word=$2
444+#echo "$as_me:$LINENO: checking for $ac_word" >&5
445+#echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
446+#if test "${ac_cv_prog_LEX+set}" = set; then
447+# echo $ECHO_N "(cached) $ECHO_C" >&6
448+#else
449+# if test -n "$LEX"; then
450+# ac_cv_prog_LEX="$LEX" # Let the user override the test.
451+#else
452+#as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453+#for as_dir in $PATH
454+#do
455+# IFS=$as_save_IFS
456+# test -z "$as_dir" && as_dir=.
457+# for ac_exec_ext in '' $ac_executable_extensions; do
458+# if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
459+# ac_cv_prog_LEX="flex"
460+# echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
461+# break 2
462+# fi
463+#done
464+#done
465+#
466+#fi
467+#fi
468+#LEX=$ac_cv_prog_LEX
469+#if test -n "$LEX"; then
470+# echo "$as_me:$LINENO: result: $LEX" >&5
471+#echo "${ECHO_T}$LEX" >&6
472+#else
473+# echo "$as_me:$LINENO: result: no" >&5
474+#echo "${ECHO_T}no" >&6
475+#fi
476+#
477+#if test -z "$LEX"
478+#then
479+# # Extract the first word of "lex", so it can be a program name with args.
480+#set dummy lex; ac_word=$2
481+#echo "$as_me:$LINENO: checking for $ac_word" >&5
482+#echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
483+#if test "${ac_cv_prog_LEX+set}" = set; then
484+# echo $ECHO_N "(cached) $ECHO_C" >&6
485+#else
486+# if test -n "$LEX"; then
487+# ac_cv_prog_LEX="$LEX" # Let the user override the test.
488+#else
489+#as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
490+#for as_dir in $PATH
491+#do
492+# IFS=$as_save_IFS
493+# test -z "$as_dir" && as_dir=.
494+# for ac_exec_ext in '' $ac_executable_extensions; do
495+# if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
496+# ac_cv_prog_LEX="lex"
497+# echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
498+# break 2
499+# fi
500+#done
501+#done
502+#
503+#fi
504+#fi
505+#LEX=$ac_cv_prog_LEX
506+#if test -n "$LEX"; then
507+# echo "$as_me:$LINENO: result: $LEX" >&5
508+#echo "${ECHO_T}$LEX" >&6
509+#else
510+# echo "$as_me:$LINENO: result: no" >&5
511+#echo "${ECHO_T}no" >&6
512+#fi
513+#
514+# test -z "$LEX" && { { echo "$as_me:$LINENO: error: 'lex' or 'flex' is required to compile GHC." >&5
515+#echo "$as_me: error: 'lex' or 'flex' is required to compile GHC." >&2;}
516+# { (exit 1); exit 1; }; }
517+#fi
518
519
520 # Find a good install program. We prefer a C program (faster),
521--- alex-2.0.orig/debian/rules
522+++ alex-2.0/debian/rules
523@@ -0,0 +1,96 @@
524+#!/usr/bin/make -f
525+# debian/rules for alex
526+# This file is public domain software, originally written by Joey Hess.
527+# Adapted for alex by Ian Lynagh.
528+
529+# Uncomment this to turn on verbose mode.
530+#export DH_VERBOSE=1
531+
532+version := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \([^-]*\)-.*/\1/p')
533+docdir := `pwd`/debian/`dh_listpackages`/usr/share/doc/alex
534+sgmldocindex := alex.html
535+
536+build: build-stamp
537+build-stamp:
538+ dh_testdir
539+
540+ touch configure
541+ ./configure --prefix=/usr
542+ $(MAKE)
543+ $(MAKE) -C alex/doc ps html
544+ sed -e "s#@LIBDIR@#/usr/lib/alex-$(version)#g" \
545+ -e "s#@DOCDIR@#/usr/share/doc/alex#g" \
546+ -e "s#@VERSION@#$(version)#g" \
547+ alex/doc/alex.1.in > alex/doc/alex.1
548+ echo ".so man1/alex.1" > debian/alex-$(version).1
549+
550+ touch build-stamp
551+
552+clean:
553+ dh_testdir
554+ dh_testroot
555+ rm -f build-stamp
556+
557+ touch configure
558+ -$(MAKE) distclean
559+ rm -f alex/doc/alex.1 debian/alex-$(version).1
560+ rm -f mk/config.mk mk/config.h mk/stamp-h
561+
562+ dh_clean
563+
564+install: build
565+ dh_testdir
566+ dh_testroot
567+ dh_clean -k
568+ dh_installdirs
569+
570+ $(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
571+
572+ mkdir -p $(docdir)/{sgml,dvi,ps,html}
573+ cp alex/doc/*.sgml $(docdir)/sgml/
574+ cp alex/doc/*.dvi $(docdir)/dvi/
575+ cp alex/doc/*.ps $(docdir)/ps/
576+ cp -a alex/doc/alex/* $(docdir)/html/
577+ ln -s $(sgmldocindex) $(docdir)/html/index.html
578+ cp -a alex/examples $(docdir)
579+
580+# Build architecture-independent files here.
581+binary-indep: build install
582+ @:
583+
584+# Build architecture-dependent files here.
585+binary-arch: build install
586+ dh_testdir
587+ dh_testroot
588+ dh_installchangelogs
589+ dh_installdocs
590+ dh_installexamples
591+# dh_install
592+# dh_installmenu
593+# dh_installdebconf
594+# dh_installlogrotate
595+# dh_installemacsen
596+# dh_installcatalogs
597+# dh_installpam
598+# dh_installmime
599+# dh_installinit
600+# dh_installcron
601+# dh_installinfo
602+# dh_undocumented
603+ dh_installman debian/alex-$(version).1 alex/doc/alex.1
604+ dh_link
605+ dh_strip
606+ dh_compress
607+ dh_fixperms
608+# dh_perl
609+# dh_python
610+# dh_makeshlibs
611+ dh_installdeb
612+ dh_shlibdeps
613+ dh_gencontrol
614+ dh_md5sums
615+ dh_builddeb
616+
617+binary: binary-indep binary-arch
618+.PHONY: build clean binary-indep binary-arch binary install
619+
620--- alex-2.0.orig/debian/changelog
621+++ alex-2.0/debian/changelog
622@@ -0,0 +1,19 @@
623+alex (2.0-2) unstable; urgency=low
624+
625+ * Added s390, m68k, mips, hppa, arm and powerpc Linux to configure{,.in}
626+
627+ -- Ian Lynagh (wibble) <igloo@debian.org> Wed, 01 Oct 2003 12:31:01 +0000
628+
629+alex (2.0-1) unstable; urgency=low
630+
631+ * Initial release. Closes: #151044.
632+ * Changed configure{,.in} to not require flex.
633+ * Wrote manpage for alex(1).
634+ * Fix references to happy/parsers and version/verbose confusion in the docs.
635+ * Changed wrapper to use $@ and ${1+"$@"} rather than $*
636+ * When giving usage info, always use the name "alex" (otherwise
637+ alex.bin is given).
638+ * Add sparc case to configure{,.in}.
639+
640+ -- Ian Lynagh (wibble) <igloo@debian.org> Tue, 09 Sep 2003 15:14:27 +0000
641+
642--- alex-2.0.orig/debian/control
643+++ alex-2.0/debian/control
644@@ -0,0 +1,15 @@
645+Source: alex
646+Section: devel
647+Priority: optional
648+Maintainer: Ian Lynagh (wibble) <igloo@debian.org>
649+Standards-Version: 3.5.6.0
650+Build-Depends: debhelper (>= 4), ghc6 | ghc5 (>= 5.04), jade, docbook-utils
651+
652+Package: alex
653+Architecture: any
654+Depends: ${shlibs:Depends}
655+Description: lexical analyser generator for Haskell
656+ Alex is a tool for generating lexical analysers in Haskell, given a
657+ description of the tokens to be recognised in the form of regular
658+ expressions. It is similar to the tool lex or flex for C/C++.
659+
660--- alex-2.0.orig/debian/compat
661+++ alex-2.0/debian/compat
662@@ -0,0 +1 @@
663+4
664--- alex-2.0.orig/debian/copyright
665+++ alex-2.0/debian/copyright
666@@ -0,0 +1,41 @@
667+This package was originally debianized by Ian Lynagh <igloo@debian.org>
668+on 2003-09-08.
669+
670+It was downloaded from
671+http://www.haskell.org/alex/dist/alex-2.0-src.tar.bz2
672+
673+Upstream Author: Simon Marlow (simonmar@microsoft.com)
674+
675+Copyright:
676+
677+The Glasgow Haskell Compiler License
678+
679+Copyright 1999, The University Court of the University of Glasgow.
680+All rights reserved.
681+
682+Redistribution and use in source and binary forms, with or without
683+modification, are permitted provided that the following conditions are met:
684+
685