aclocal.m4
Makefile
Makefile.in
-makerpm
config.h.in
config.status
config.log
config.h
depcomp
compile
+makerpm
missing
mkinstalldirs
+stamp-h
stamp-h1
stamp-h.in
parser.cc
scanner.cc
-version.h
y.tab.c
y.tab.h
+version.h
+*.tar.gz
+*.tar.bz2
+*.zip
*~
*.o
*.spec
re2c_SOURCES = code.cc dfa.cc main.cc parser.cc actions.cc scanner.re substr.cc\
translate.cc scanner.cc
include_HEADERS=basics.h dfa.h globals.h ins.h parser.h re.h scanner.h \
- substr.h token.h version.h
-man_MANS = re2c.1
+ substr.h token.h
+man_MANS = re2c.1
CXXFLAGS = -O2 -Wall -I. -Wno-unused -Wno-parentheses -Wno-deprecated
YFLAGS = -d
RE2C = re2c
-RE2CFLAGS =
-CLEANFILES = y.tab.c y.tab.h parser.cc re2c.1 version.h .version \
-DISTCLEANFILES = makerpm re2c*.spec README scanner.cc re2c
-EXTRA_DIST = $(man_MANS) README parser.y scanner.re
+RE2CFLAGS = -s
+CLEANFILES = parser.cc y.tab.c y.tab.h parser.cc re2c.1 .version \
+DISTCLEANFILES = makerpm re2c.spec README scanner.cc re2c
+EXTRA_DIST = $(man_MANS) README parser.y scanner.re makerpm.in re2c.spec.in \
+ README.in y.tab.h \
+ examples/basemmap.c examples/c.re examples/cmmap.re \
+ examples/cnokw.re examples/cunroll.re examples/modula.re \
+ examples/sample.re examples/simple.re examples/rexx/README \
+ examples/rexx/rexx.l examples/rexx/scanio.c doc/loplas.ps \
+ doc/sample.bib website/index.html
rpm-files: $(bin_PROGRAMS) $(EXTRA_DIST)
-main.cc: version.h
-
-parser.cc: version.h parser.y
+parser.cc: parser.y
$(YACC) $(YFLAGS) parser.y
mv -f y.tab.c parser.cc
scanner.cc: scanner.re
-@if test -x ./re2c; then \
- echo "re2c -s $< >$@"; \
- ./re2c -s $< >$@; \
+ echo "re2c $(RE2CFLAGS) $< >$@"; \
+ ./re2c $(RE2CFLAGS) $< >$@; \
else \
echo "cp -f bootstrap/$@ $@"; \
cp -f bootstrap/$@ $@; \
.version:
echo $(PACKAGE_VERSION) > .version
-
-version.h:
- echo "#define RE2C_VERSION \"$(PACKAGE_VERSION)\"" > version.h
-
AC_DEFINE([HAVE_ULONG], [1], [Define to 1 if you have ulong type definition])
])
-AC_CONFIG_FILES([Makefile README makerpm re2c.1])
+AC_CONFIG_FILES([Makefile README makerpm re2c.1 re2c.spec])
AC_OUTPUT_COMMANDS([chmod +x makerpm])
AC_OUTPUT
#include "globals.h"
#include "parser.h"
#include "dfa.h"
-#include "version.h"
char *fileName;
bool sFlag = false;
VERSION="@PACKAGE_VERSION@"
TARDIR="`basename \`pwd\``"
RELEASE=${1:-1}
-#VERSION=${2:-`echo $TARDIR | sed "s/$PREFIX-//g"`}
echo "Usage:"
echo "$0 <release>"
sleep 1 ; echo -n . ; sleep 1 ; echo -n . ; sleep 1 ; echo -n .
echo
-TAR=$PREFIX-$VERSION.tar.gz
-SPEC=$PREFIX-$VERSION.spec
-
-# write out the .spec file
-sed -e "s/RPMVERSION/$VERSION/g" \
- -e "s/RPMRELEASE/$RELEASE/g" \
- -e "s/RPMTARDIR/$TARDIR/g" \
- > $SPEC <<'EOF'
-Summary: re2c - A tool for generating C-based recognizers from regular expressions
-Name: re2c
-Version: RPMVERSION
-Release: RPMRELEASE
-Group: Development
-License: public domain
-URL: http://sourceforge.net/projects/re2c/
-Source: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-
-%description
-re2c is a great tool for writing fast and flexible lexers. It has
-served many people well for many years and it deserves to be
-maintained more actively. re2c is on the order of 2-3 times faster
-than a flex based scanner, and its input model is much more
-flexible.
-
-%prep
-%setup -q -n RPMTARDIR
-
-%build
-./autogen.sh
-./configure \
- --prefix=%{_prefix} \
-
-make re2c
-#regenerate file scanner.cc
-rm -f scanner.cc
-make scanner.cc
-#regenerate re2c itself
-rm -f re2c
-make rpm-files
-
-%install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
-install -m 0755 re2c $RPM_BUILD_ROOT%{_bindir}
-
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
-install -m 0755 re2c.1 $RPM_BUILD_ROOT%{_mandir}/man1
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%changelog
-* Sun Jan 04 2003 Marcus Boerger <re2c@somabo.de>
-- Initial version.
-
-%files
-%defattr(-,root,root)
-%{_bindir}/re2c
-%{_mandir}/man1/re2c.1*
-
-%doc README examples doc/*
-EOF
+TAR=@PACKAGE_TARNAME@-$VERSION.tar.gz
+SPEC=re2c.spec
RPMBASE=/usr/src/redhat
for i in /usr/src/redhat /usr/src/packages /usr/src/RPM; do
SPECDIR=${RPMBASE}/SPECS
SRCDIR=${RPMBASE}/SOURCES
-(
-#./cvsclean.sh
-cd ..
-tar czvf ${SRCDIR}/${TAR} $TARDIR )
+make dist
+cp $TAR $SRCDIR
echo "CP: (`pwd`) cp -a $SPEC $SPECDIR/${SPEC}"
cp -a $SPEC $SPECDIR/${SPEC}
#include "globals.h"
#include "parser.h"
-#include "version.h"
extern "C"
{
void parse(int i, ostream &o){
- o << "/* Generated by re2c " RE2C_VERSION " on ";
+ o << "/* Generated by re2c " PACKAGE_VERSION " on ";
time_t now = time(&now);
o.write(ctime(&now), 24);
o << " */\n";
./"
./" $Id$
./"
-.TH RE2C 1 "8 April 1994" "Version @PACKAGE_VERSION@"
+.TH RE2C 1 "14 March 1994" "Version @PACKAGE_VERSION@"
.ds re \fBre2c\fP
.ds le \fBlex\fP
.ds rx regular expression
.ds lx \fIl\fP-expression
\"$Log$
+\"Revision 1.3 2004/03/14 12:54:19 helly
+\"Next step of autogen patch
+\"
\"Revision 1.2 2004/03/13 20:35:12 helly
\"Updated configure stuff
\"
--- /dev/null
+Summary: re2c - A tool for generating C-based recognizers from regular expressions
+Name: @PACKAGE_NAME@
+Version: @PACKAGE_VERSION@
+Release: 1
+Group: Development
+License: public domain
+URL: http://sourceforge.net/projects/re2c/
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+%description
+re2c is a great tool for writing fast and flexible lexers. It has
+served many people well for many years and it deserves to be
+maintained more actively. re2c is on the order of 2-3 times faster
+than a flex based scanner, and its input model is much more
+flexible.
+
+%prep
+%setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
+
+%build
+./configure \
+ --prefix=%{_prefix}
+make re2c
+#regenerate file scanner.cc
+rm -f scanner.cc
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+install -m 0755 re2c $RPM_BUILD_ROOT%{_bindir}
+
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+install -m 0755 re2c.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%changelog
+* Sun Jan 04 2003 Marcus Boerger <re2c@somabo.de>
+- Initial version.
+
+%files
+%defattr(-,root,root)
+%{_bindir}/re2c
+%{_mandir}/man1/re2c.1*
+
+%doc README examples doc/*