diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-02 13:30:11 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-02 13:30:11 +0000 |
commit | 77b7240e4ca1e0d1e448f64773f162cc9653a383 (patch) | |
tree | 8b9579680def306bac2a847c19e431aad6286e78 | |
download | swis-77b7240e4ca1e0d1e448f64773f162cc9653a383.tar.gz swis-77b7240e4ca1e0d1e448f64773f162cc9653a383.tar.bz2 |
Initial import
git-svn-id: file:///svnroot/swis/trunk@1 05ba3e8d-823b-0410-8fb2-de0ee4edb5ba
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | Makefile.am | 21 | ||||
-rw-r--r-- | NEWS | 36 | ||||
-rwxr-xr-x | bootstrap | 47 | ||||
-rw-r--r-- | configure.ac | 69 | ||||
-rw-r--r-- | src/Makefile.am | 18 | ||||
-rw-r--r-- | src/swis.h | 17 |
8 files changed, 218 insertions, 0 deletions
@@ -0,0 +1 @@ +Sergey Poznyakoff gray@gnu.org.ua diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..1deb5aa --- /dev/null +++ b/ChangeLog @@ -0,0 +1,9 @@ +2007-10-02 Sergey Poznyakoff <gray@gnu.org.ua> + + Let's begin. + + +Local Variables: +mode: change-log +version-control: never +End: diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e61b396 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,21 @@ +# This file is part of SWIS +# Copyright (C) 2007 Sergey Poznyakoff +# +# SWIS is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# SWIS is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with SWIS. If not, see <http://www.gnu.org/licenses/>. + +ACLOCAL_AMFLAGS = -I m4 +AUTOMAKE_OPTIONS = gnu 1.8.5 + +SUBDIRS=gnu src + @@ -0,0 +1,36 @@ +SWIS NEWS -- history of user-visible changes. 2007-09-01 +Copyright (C) 2007 Sergey Poznyakoff +See the end of file for copying conditions. + +Please send bug reports to <gray@gnu.org.ua>. + +Version 0.1 + +No news is a good news. + + + +---------------------------------------------------------------------- +Copyright information: + +Copyright (C) 2007 Sergey Poznyakoff + + Permission is granted to anyone to make or distribute verbatim copies + of this document as received, in any medium, provided that the + copyright notice and this permission notice are preserved, + thus giving the recipient permission to redistribute in turn. + + Permission is granted to distribute modified versions + of this document, or of portions of it, + under the above conditions, provided also that they + carry prominent notices stating who last changed them. + +Local variables: +mode: outline +paragraph-separate: "[ ]*$" +eval: (add-hook 'write-file-hooks 'time-stamp) +time-stamp-start: "changes. " +time-stamp-format: "%:y-%02m-%02d" +time-stamp-end: "\n" +end: + diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..e5342f9 --- /dev/null +++ b/bootstrap @@ -0,0 +1,47 @@ +#! /bin/sh +checkout_only_file=README-hacking + +usage() { + echo >&2 "\ + Usage: $0 [OPTION]... + Bootstrap this package from the checked-out sources. + + Supported options are: + + --force Attempt to bootstrap even if the sources seem + not to have been checked out. + --gnulib-srcdir=DIRNAME Specify the local directory where gnulib + sources reside. This option is required, unless + \`gnulib-tool' is in your PATH. + --help Print this help list. + " +} + +for option +do + case $option in + --help) + usage + exit 0;; + --gnulib-srcdir=*) + GNULIB_SRCDIR=`expr "$option" : '--gnulib-srcdir=\(.*\)'` + PATH=$GNULIB_SRCDIR:$PATH;; + --force) + checkout_only_file=;; + *) + echo >&2 "$0: $option: unknown option" + exit 1;; + esac +done + +if test -n "$checkout_only_file" && test ! -r "$checkout_only_file"; then + echo "$0: Bootstrapping from a non-checked-out distribution is risky." >&2 + exit 1 +fi + +test -d m4 || mkdir m4 || exit 1 +test -d gnu || mkdir gnu || exit 1 + + gnulib-tool --source-base=gnu --import \ + xalloc getopt error progname getline strerror && + autoreconf -f -i -s diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..d2b695e --- /dev/null +++ b/configure.ac @@ -0,0 +1,69 @@ +# This file is part of SWIS +# Copyright (C) 2007 Sergey Poznyakoff +# +# SWIS is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# SWIS is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with SWIS. If not, see <http://www.gnu.org/licenses/>. + +AC_PREREQ(2.59) +AC_INIT([swis], 0.1, [gray@gnu.org.ua]) +AC_CONFIG_SRCDIR([src/swis.h]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE + +# Checks for programs. +AC_PROG_CC +gl_EARLY +AC_PROG_LEX +AC_PROG_YACC +AC_PROG_RANLIB + +# Checks for libraries. + +# Checks for header files. +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h sys/sendfile.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIGNAL +AC_TYPE_UID_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_HEADER_STDBOOL + +# Checks for library functions. +gl_INIT +AC_FUNC_FORK +AC_FUNC_MALLOC +AC_FUNC_MEMCMP +AC_FUNC_STAT +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([memset strchr strdup strerror strrchr setegid setregid setresgid seteuid setreuid vsyslog sysconf getdtablesize]) + +AH_BOTTOM([ +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __attribute__(x) +#endif + +#ifndef GSC_PRINTFLIKE +# define GSC_PRINTFLIKE(fmt,narg) __attribute__ ((__format__ (__printf__, fmt, narg))) +#endif +]) + +AC_CONFIG_FILES([Makefile + gnu/Makefile + src/Makefile]) + +AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..3feb554 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,18 @@ +# This file is part of SWIS +# Copyright (C) 2007 Sergey Poznyakoff +# +# SWIS is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# SWIS is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with SWIS. If not, see <http://www.gnu.org/licenses/>. + +INCLUDES=-I${top_srcdir}/gnu -I../gnu +EXTRA_DIST=swis.h
\ No newline at end of file diff --git a/src/swis.h b/src/swis.h new file mode 100644 index 0000000..8f5ac9f --- /dev/null +++ b/src/swis.h @@ -0,0 +1,17 @@ +/* This file is part of SWIS + Copyright (C) 2007 Sergey Poznyakoff + + SWIS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + SWIS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with SWIS. If not, see <http://www.gnu.org/licenses/>. */ + +#include <config.h> |