Move to an autotools-based build system.

This commit is contained in:
Michał Górny 2010-10-30 17:53:30 +02:00
parent 156a5d7131
commit fd6cf3545b
4 changed files with 8 additions and 27 deletions

2
Makefile.am Normal file
View File

@ -0,0 +1,2 @@
bin_SCRIPTS = sunrise-commit
man1_MANS = sunrise-commit.1

26
configure vendored
View File

@ -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

5
configure.in Normal file
View File

@ -0,0 +1,5 @@
AC_INIT([sunrise-commit], [0.3])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile sunrise-commit])
AC_OUTPUT

View File

@ -324,7 +324,7 @@ main() {
exit 0 exit 0
;; ;;
--version|-V) --version|-V)
echo 'sunrise-commit 0.3_pre1' echo 'sunrise-commit @VERSION@'
exit 0 exit 0
;; ;;