nilfs-utils: add autogen script

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
Ryusuke Konishi 2013-04-04 00:08:11 +09:00
parent f0d949d08d
commit 1385016db7
2 changed files with 30 additions and 4 deletions

8
README
View File

@ -40,10 +40,10 @@ option is not necessary.
$ cd your-work-directory
$ git clone git://github.com/nilfs-dev/nilfs-utils.git
Before compiling the development sources, you need to run
autoconf/automake tools. This is not required for packaged sources
unless you changed the configuration.
Before compiling the development sources, you need to run autogen.sh
script. This is not required for packaged sources unless you changed
the configuration.
$ cd nilfs-utils
$ aclocal && autoheader && libtoolize -c --force && automake -a -c && autoconf
$ ./autogen.sh

26
autogen.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
#
# Run this before configure
#
die() {
echo
echo "Error: $*"
exit 1
}
aclocal || die "aclocal failed"
autoheader || die "autoheader failed"
libtoolize -c --force || die "libtoolize failed"
automake -a -c || die "automake failed"
echo
echo "Creating configure..."
autoconf || die "autoconf failed"
echo
echo "Now run './configure' and 'make' to compile nilfs-utils."