]> gitweb @ CieloNegro.org - oh-my-god.git/commitdiff
autoolisation
authorPHO <pho@cielonegro.org>
Thu, 17 May 2012 16:24:02 +0000 (01:24 +0900)
committerPHO <pho@cielonegro.org>
Thu, 17 May 2012 16:24:02 +0000 (01:24 +0900)
.gitignore [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
build.sh [new file with mode: 0755]
configure.ac [new file with mode: 0644]
src/Makefile.am [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..cc8dc83
--- /dev/null
@@ -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 (file)
index 0000000..e22a714
--- /dev/null
@@ -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 (executable)
index 0000000..d30fb3f
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -ex
+autoreconf -i
diff --git a/build.sh b/build.sh
new file mode 100755 (executable)
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 (file)
index 0000000..d3334b1
--- /dev/null
@@ -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 (file)
index 0000000..8b88ce2
--- /dev/null
@@ -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