From dc9935984d6921aba89634cb8467bfbfe9064691 Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 18 May 2012 01:24:02 +0900 Subject: [PATCH] autoolisation --- .gitignore | 10 ++++++++++ Makefile.am | 9 +++++++++ autogen.sh | 3 +++ build.sh | 17 +++++++++++++++++ configure.ac | 21 +++++++++++++++++++++ src/Makefile.am | 23 +++++++++++++++++++++++ 6 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile.am create mode 100755 autogen.sh create mode 100755 build.sh create mode 100644 configure.ac create mode 100644 src/Makefile.am diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc8dc83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.cache +*.log +Makefile +Makefile.in +aclocal.m4 +config.status +configure +configure.scan +install-sh +missing diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e22a714 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,9 @@ +SUBDIRS = src + +EXTRA_DIST = \ + autogen.sh \ + build.sh \ + $(NULL) + +AUTOMAKE_OPTIONS = foreign +ACLOCAL_AMFLAGS = -I m4 diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..d30fb3f --- /dev/null +++ b/autogen.sh @@ -0,0 +1,3 @@ +#!/bin/sh +set -ex +autoreconf -i diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..fbd85ed --- /dev/null +++ b/build.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +if [ ! -e "configure" ]; then + ./autogen.sh +fi + +mkdir -p _build +cd _build + +if [ ! -e "Makefile" ]; then + ../configure \ + --enable-maintainer-mode \ + $@ +fi + +gmake -w html diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..d3334b1 --- /dev/null +++ b/configure.ac @@ -0,0 +1,21 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.68]) +AC_INIT([oh-my-god], [0.1], [null@example.org]) +AM_INIT_AUTOMAKE +AM_MAINTAINER_MODE + +# Checks for programs. + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile + src/Makefile]) +AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..8b88ce2 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,23 @@ +DOCBOOK_MAIN = oh-my-god.xml + +DOCBOOK_FILES = \ + $(DOCBOOK_MAIN) \ + mission-chan.xml \ + $(NULL) + +DOCBOOK_STYLESHEET = \ + http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl + +EXTRA_DIST = $(DOCBOOK_FILES) + +html-local: + $(XMLLINT) --noout --xinclude --postvalid --noent $(DOCBOOK_MAIN) + $(XSLTPROC) \ + --stringparam base.dir html/ \ + --stringparam use.id.as.filename 1 \ + --nonet \ + $(DOCBOOK_STYLESHEET) \ + $(DOCBOOK_MAIN) + +clean-local: + -rm -rf html -- 2.40.0