Skip to content

Commit

Permalink
Update project for old version (#149)
Browse files Browse the repository at this point in the history
update project for old version
  • Loading branch information
marinelay authored Nov 21, 2024
1 parent d223ab1 commit 72d8667
Show file tree
Hide file tree
Showing 11,487 changed files with 2,163,863 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 15 additions & 0 deletions safety/C/projects/flex/.indent.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--blank-lines-after-declarations
--blank-lines-after-procedures
-br /* open braces on same line */
-nce /* start else on new line */
-nbc /* vars on same line */
-di8 /* line up var decl at col 8 */
-brs /* struct brace on same line */
-i8 /* indent 4 */
-lp /* line up parens */
-ts8 /* tab stop */
-bbo /* break before && || */
-hnl /* honor newlines */
--space-special-semicolon
--line-length75
--dont-break-procedure-type
50 changes: 50 additions & 0 deletions safety/C/projects/flex/.mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Aaron Stone <[email protected]>
Akim Demaille <[email protected]>
Alastair Hughes <[email protected]>
Alex Kennedy <[email protected]>
Alexis La Goutte <[email protected]>
Bastian Köcher <[email protected]>
Christoph Junghans <[email protected]>
Christos Zoulas <[email protected]>
Cyril Brulebois <[email protected]>
Demi Obenour <[email protected]>
Dennis Clarke <[email protected]>
Egor Pugin <[email protected]>
Elias Pipping <[email protected]>
Explorer09 <[email protected]>
Hans-Bernhard Broeker <[email protected]>
Harald van Dijk <[email protected]>
Hugh Sasse <[email protected]>
Jaska Uimonen <[email protected]>
Jeff Smith <[email protected]>
John Millaway <[email protected]>
Manoj Srivastava <[email protected]>
Mariusz Pluciński <[email protected]>
Michael Haubenwallner <[email protected]>
Michael McConville <[email protected]> <[email protected]>
Michael Reed <[email protected]>
Michael van Elst <[email protected]>
Mightyjo <[email protected]>
Mike Frysinger <[email protected]>
OBATA Akio <[email protected]>
Robert Larice <[email protected]> rlar <rlar>
Robert Larice <[email protected]> Robert.Larice Robert Larice <[email protected]>
Robert Minsk <[email protected]>
Samuel Thibault <[email protected]>
Sean McBride <[email protected]>
Serguey Parkhomovsky <[email protected]> <[email protected]>
Simon Sobisch <[email protected]>
Stefan Reinauer <[email protected]>
Thomas Klausner <[email protected]>
Till Varoquaux <[email protected]>
Tobias Klauser <[email protected]>
Todd C. Miller <[email protected]>
Translation Project <[email protected]> <[email protected]>
Translation Project <[email protected]> <[email protected]>
Vern Paxson <[email protected]>
Will Estes <[email protected]> <[email protected]>
Yuri <[email protected]>
luistung <[email protected]>
lukeallardyce <[email protected]>
nomis52 <[email protected]>
viktor.shepel <[email protected]>
1 change: 1 addition & 0 deletions safety/C/projects/flex/.prev-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.4
24 changes: 24 additions & 0 deletions safety/C/projects/flex/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: c

compiler:
- gcc

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- autoconf
- bison
- gcc-6
- help2man
- lzip
- texinfo
- texlive

before_script:
- ./.travis/install-gettext.sh
- ./.travis/install-automake.sh
- export PATH=$HOME/bin:$PATH

script: ./autogen.sh && ./configure && make && make check && make distcheck
24 changes: 24 additions & 0 deletions safety/C/projects/flex/.travis/install-automake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -ex

wget -nv https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz

# Verify tarball against hard-coded hashes. GPG signatures require an external
# keyserver which might be offline, which is undesirable for build server use.
# It's equally secure to just hard-code hashes, provided they're trusted (i.e.
# you verify a hash against a GPG signature once).
echo 'd3cd5fc9bbea9f977b51799180cde5d253dcba96 *automake-1.15.1.tar.gz'|
sha1sum -c || :
printf '%s *automake-1.15.1.tar.gz\n' \
f0d4717ebe2c76cec5d487de090f6e1c0f784b0d382fd964ffa846287e2a364a\
52531a26ab98b7033ac04ed302a247b3b114299def54819a03439bfc962ff61b|
sha512sum -c || :

tar xf automake-1.15.1.tar.gz
cd automake-1.15.1
# Don't flood Travis CI build log with dependency packages unless error occurs.
./configure --quiet --prefix="$HOME" ||
{ s=$? && cat config.log && (exit $s); }
make -s V=0 >/dev/null 2>&1 || make -s V=1
make -s install >make_install.log 2>&1 ||
{ s=$? && cat make_install.log && (exit $s); }
rm make_install.log || :
25 changes: 25 additions & 0 deletions safety/C/projects/flex/.travis/install-gettext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash -ex

wget -nv https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.lz

# Verify tarball against hard-coded hashes. GPG signatures require an external
# keyserver which might be offline, which is undesirable for build server use.
# It's equally secure to just hard-code hashes, provided they're trusted (i.e.
# you verify a hash against a GPG signature once).
echo '404e072c455f79be4a2458863c19fb55a217771e *gettext-0.19.8.1.tar.lz'|
sha1sum -c || :
printf '%s *gettext-0.19.8.1.tar.lz\n' \
27c7a15be1ffd30a0182e264d0bf896850a295160872e1b1b9d1e9a15bc486cd\
93465c131f948206fa0bbe2e3eacfc8489dd0cfc5ea5dcf05eff3829e27fc60f|
sha512sum -c || :

tar xf gettext-0.19.8.1.tar.lz
cd gettext-0.19.8.1
# Don't flood Travis CI build log with dependency packages unless error occurs.
# libacl is not used in this Travis build system.
./configure --quiet --prefix="$HOME" --disable-acl ||
{ s=$? && cat config.log && (exit $s); }
make -s V=0 >/dev/null 2>&1 || make -s V=1
make -s install >make_install.log 2>&1 ||
{ s=$? && cat make_install.log && (exit $s); }
rm make_install.log || :
16 changes: 16 additions & 0 deletions safety/C/projects/flex/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

In 2001, Will Estes took over as maintainer of flex.

John Millaway is a co-author of the current version of flex. He has
contributed a large number of new features, fixed a large number of
outstanding bugs and has made significant contributions to the flex
documentation.

Aaron Stone has contributed several bug fixes to the flex codebase.

Vern Paxson wrote flex with the help of many ideas and much
inspiration from Van Jacobson. Original version by Jef Poskanzer.

The fast table representation is a partial implementation of a design
done by Van Jacobson. The implementation was done by Kevin Gong and
Vern Paxson.
5 changes: 5 additions & 0 deletions safety/C/projects/flex/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Contributor Code of Conduct

This project adheres to No Code of Conduct. We are all adults. We accept anyone's contributions. Nothing else matters.

For more information please visit the [No Code of Conduct](https://github.com/domgetter/NCoC) homepage.
42 changes: 42 additions & 0 deletions safety/C/projects/flex/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Flex carries the copyright used for BSD software, slightly modified
because it originated at the Lawrence Berkeley (not Livermore!) Laboratory,
which operates under a contract with the Department of Energy:

Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 The Flex Project.

Copyright (c) 1990, 1997 The Regents of the University of California.
All rights reserved.

This code is derived from software contributed to Berkeley by
Vern Paxson.

The United States Government has rights in this work pursuant
to contract no. DE-AC03-76SF00098 between the United States
Department of Energy and the University of California.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.

This basically says "do whatever you please with this software except
remove this notice or take advantage of the University's (or the flex
authors') name".

Note that the "flex.skl" scanner skeleton carries no copyright notice.
You are free to do whatever you please with scanners generated using flex;
for them, you are not even bound by the above copyright.
93 changes: 93 additions & 0 deletions safety/C/projects/flex/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# This file is part of flex.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:

# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.

# Neither the name of the University nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.

# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE.

# Notes on building:

# Possible values for DEFS:
#
# By default, flex generates 8-bit scanners when using table compression,
# and 7-bit scanners when using uncompressed tables (-f or -F options).
# For flex to always generate 8-bit scanners, add "-DDEFAULT_CSIZE=256"
# to DEFS.

ACLOCAL_AMFLAGS = -I m4

dist_doc_DATA = \
AUTHORS \
COPYING \
NEWS \
ONEWS \
README.md

EXTRA_DIST = \
.indent.pro

dist_noinst_SCRIPTS = \
autogen.sh \
po/update_linguas.sh

SUBDIRS = \
src \
doc \
examples \
po \
tests \
tools

# Convenience targets to build libfl only
# These are actually wrappers around automake- and libtool-generated targets

libfl:
cd src && $(MAKE) $(AM_MAKEFLAGS) libfl.la libfl.pc

install-libfl:
cd src && \
$(MAKE) $(AM_MAKEFLAGS) lib_LTLIBRARIES=libfl.la \
pkgconfig_DATA=libfl.pc install-libLTLIBRARIES install-pkgconfigDATA

uninstall-libfl:
cd src && \
$(MAKE) $(AM_MAKEFLAGS) \
lib_LTLIBRARIES=libfl.la pkgconfig_DATA=libfl.pc \
uninstall-libLTLIBRARIES uninstall-pkgconfigDATA

# libfl.pc is cleaned via 'distclean' target
clean-libfl:
cd src && \
$(MAKE) $(AM_MAKEFLAGS) lib_LTLIBRARIES=libfl.la clean-libLTLIBRARIES \
clean-libtool

# Create the ChangeLog, but only if we're inside a git working directory

ChangeLog: $(srcdir)/tools/git2cl
if [ -d $(srcdir)/.git ] ; then \
$(srcdir)/tools/git2cl > $@ \
; fi

indent:
cd src && $(MAKE) $(AM_MAKEFLAGS) indent

install-exec-hook:
cd $(DESTDIR)$(bindir) && \
$(LN_S) -f flex$(EXEEXT) flex++$(EXEEXT)

.PHONY: libfl install-libfl uninstall-libfl clean-libfl \
ChangeLog indent
Loading

0 comments on commit 72d8667

Please sign in to comment.