Permalink
Browse files

add makedist script, update buildme for new --with-dtcmp option

  • Loading branch information...
adammoody committed Apr 18, 2015
1 parent f8f8535 commit af8b8f1288d0901bb392761cc6d8c81354049413
Showing with 57 additions and 2 deletions.
  1. +1 −1 buildme
  2. +2 −1 configure.ac
  3. +54 −0 makedist
View
@@ -29,7 +29,7 @@ export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircl
../configure \
--prefix=$installdir \
--disable-silent-rules \
--with-libdtcmp=$installdir && \
--with-dtcmp=$installdir && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ] ; then
View
@@ -1,10 +1,11 @@
AC_INIT([fileutils],[0.0.1-alpha.4],[fileutils-discuss@googlegroups.com],[fileutils],[http://fileutils.io])
AC_INIT([fileutils],[0.0.1-alpha.5],[fileutils-discuss@googlegroups.com],[fileutils],[http://fileutils.io])
# Keep artifacts in directories as much as possible.
AC_CONFIG_AUX_DIR(auxdir)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
# add foreign option to avoid GPL files
AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
View
@@ -0,0 +1,54 @@
#!/bin/bash
. /usr/local/tools/dotkit/init.sh
use mvapich2-gnu
set -x
topdir=`pwd`
installdir=$topdir/install
export PATH="${topdir}/autotools/install/bin:$PATH"
./autogen.sh
rm -rf build
mkdir -p build
cd build
export PKG_CONFIG_PATH="${installdir}/lib/pkgconfig"
# TODO: avoid this step
# necessary so configure test of dtcmp links with MPI
export CC=mpicc
# hack to get things to build after common library
export CFLAGS="-I${topdir}/src/common -DDCOPY_USE_XATTRS"
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle"
make distclean
../configure \
--prefix=$installdir \
--disable-silent-rules \
--with-dtcmp=$installdir
#../configure \
# --prefix=/usr/local/fileutils
if [ $? -ne 0 ] ; then
echo "failed to configure"
exit 1
fi
make dist
if [ $? -ne 0 ] ; then
echo "failed to make dist"
exit 1
fi
make distcheck
if [ $? -ne 0 ] ; then
echo "failed to make distcheck"
exit 1
fi
mv *.tar.gz ../.

0 comments on commit af8b8f1

Please sign in to comment.