Skip to content

Commit

Permalink
restruct source layout to meet common conventions.
Browse files Browse the repository at this point in the history
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
  • Loading branch information
bene42 committed Apr 17, 2011
1 parent e09e93f commit 13b3877
Show file tree
Hide file tree
Showing 11 changed files with 603 additions and 15 deletions.
4 changes: 4 additions & 0 deletions AUTHORS
@@ -0,0 +1,4 @@
Hans J. Koch <hjk@hansjkoch.de>
John Ogness <john.ogness@linutronix.de>
Benedikt Spranger <b.spranger@linutronix.de>
Manuel Traut <manut@linutronix.de>
502 changes: 502 additions & 0 deletions COPYING

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions ChangeLog-from-git
@@ -0,0 +1,18 @@
#! /bin/sh

if [ -z $1 ]
then
exit 1
fi

if [ -d "$1/.git" ]
then
git log --date-order --date=short | \
sed -e '/^commit.*$/d' | \
awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \
sed -e 's/^Author: //g' | \
sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' > $1/ChangeLog
fi

exit 0
20 changes: 17 additions & 3 deletions Makefile.am
@@ -1,6 +1,20 @@
SUBDIRS = src

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libUIO.pc

EXTRA_DIST = libUIO.pc.in libUIO-uninstalled.pc.in
lib_LTLIBRARIES = libUIO.la
libUIO_la_SOURCES = libUIO.c libUIO.h
libUIO_la_CFLAGS = -O2 -Wall -Wextra $(LIBUIO_WERROR)
include_HEADERS = libUIO.h

EXTRA_DIST = libUIO.pc.in libUIO-uninstalled.pc.in ChangeLog-from-git

DISTCLEANFILES = *~

MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.h.in \
config.sub configure depcomp INSTALL install-sh ltmain.sh m4/* \
Makefile.in missing

ACLOCAL_AMFLAGS = -I m4

dist-hook:
$(top_srcdir)/ChangeLog-from-git $(top_srcdir)
Empty file added NEWS
Empty file.
22 changes: 22 additions & 0 deletions README
@@ -0,0 +1,22 @@
libUIO - UserspaceIO helper library



Copyright (C) 2008 Hans J. Koch

libUIO is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation.

This program 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 Lesser General Public License for more details.

You should have received a copy of the Lesser GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Comments are welcome.

- Hans J. Koch <hjk@hansjkoch.de>
4 changes: 4 additions & 0 deletions autogen.sh
@@ -0,0 +1,4 @@
#! /bin/sh
mkdir -p m4 && \
touch ChangeLog && \
autoreconf -s -f -i
44 changes: 36 additions & 8 deletions configure.ac
@@ -1,13 +1,41 @@
AC_INIT([libUIO],[0.1],[john.ogness@linutronix.de])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_LANG([C])
dnl Every other copy of the package version number gets its value from here
AC_INIT(libuio, 0.2, john.ogness@linutronix.de)
AM_INIT_AUTOMAKE

AM_CONFIG_HEADER(config.h)

AC_SUBST(VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_CONFIG_HEADERS([src/config.h])
AC_LANG([C])

dnl Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL

dnl Checks for libraries.

dnl Checks for header files.

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

dnl with or without -Werror
AC_ARG_WITH([werror],
[AS_HELP_STRING([--with-werror],
[compile with -Werror @<:@default=without@:>@])],
[LIBUIO_WERROR="-Werror"],
[LIBUIO_WERROR=""])
AC_SUBST(CIF_WERROR)

dnl last but not least
AC_OUTPUT([Makefile
src/Makefile
libUIO-uninstalled.pc
libUIO.pc])
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions src/Makefile.am

This file was deleted.

0 comments on commit 13b3877

Please sign in to comment.