From fd6cf3545bbad5a6d8f322c3c8d62c7ddcf76e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 30 Oct 2010 17:53:30 +0200 Subject: [PATCH] Move to an autotools-based build system. --- Makefile.am | 2 ++ configure | 26 -------------------------- configure.in | 5 +++++ sunrise-commit => sunrise-commit.in | 2 +- 4 files changed, 8 insertions(+), 27 deletions(-) create mode 100644 Makefile.am delete mode 100755 configure create mode 100644 configure.in rename sunrise-commit => sunrise-commit.in (99%) diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..83d6297 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,2 @@ +bin_SCRIPTS = sunrise-commit +man1_MANS = sunrise-commit.1 diff --git a/configure b/configure deleted file mode 100755 index 885cbe3..0000000 --- a/configure +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -PN=sunrise-commit -PV=$(./sunrise-commit --version | cut -f 2 -d ' ') -FC_API_WANT=0 - -conf_init() { - fc_inherit install - - fc_export_functions \ - conf_get_targets -} - -conf_get_targets() { - fc_install -x '$(BINDIR)' ${PN} - fc_install_man ${PN}.1 -} - -. fastconf.sh - -echo 'This package requires fastconf in order to be built.' -echo 'Please grab it from:' -echo ' http://github.com/mgorny/fastconf/' -echo 'or your favourite package manager and install.' -echo 'Afterwards, rerun this ./configure script. Thank you.' -exit 2 diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..9bee02a --- /dev/null +++ b/configure.in @@ -0,0 +1,5 @@ +AC_INIT([sunrise-commit], [0.3]) +AM_INIT_AUTOMAKE([foreign]) + +AC_CONFIG_FILES([Makefile sunrise-commit]) +AC_OUTPUT diff --git a/sunrise-commit b/sunrise-commit.in similarity index 99% rename from sunrise-commit rename to sunrise-commit.in index 6a0530b..fe65848 100755 --- a/sunrise-commit +++ b/sunrise-commit.in @@ -324,7 +324,7 @@ main() { exit 0 ;; --version|-V) - echo 'sunrise-commit 0.3_pre1' + echo 'sunrise-commit @VERSION@' exit 0 ;;