nixpkgs/nix-dist/nix-source-dist.sh
Eelco Dolstra 1bc488563d * Automatic generation and uploading of Nix source distributions
and manuals.

svn path=/nixpkgs/trunk/; revision=546
2003-11-25 18:04:28 +00:00

32 lines
854 B
Bash
Executable File

#! /bin/sh
buildinputs="$autoconf $automake $libxml2 $libxslt"
. $stdenv/setup
echo "copying sources..."
cp -prd $src/* . || exit 1
chmod -R u+w . || exit 1
cp -p $bdbSrc externals/db-4.1.25.tar.gz || exit 1 # !!!
cp -p $atermSrc externals/aterm-2.0.5.tar.gz || exit 1
cp -p $sdfSrc externals/sdf2-bundle-1.6.tar.gz || exit 1
echo "autoconfing..."
autoreconf -i || exit 1
echo "configuring..."
./configure || exit 1
echo "building..."
export DOCBOOK_DTD=$docbook_dtd/xml/dtd/docbook
export DOCBOOK_XSL=$docbook_xslt/xml/xsl/docbook
#(cd doc && make) || exit 1
make distdir || exit 1
pkgname=$(echo nix-*)
tar cvfz $pkgname.tar.gz $pkgname || exit 1
tar cvfj $pkgname.tar.bz2 $pkgname || exit 1
echo "copying result..."
mkdir $out || exit 1
cp -p $pkgname.tar.gz $pkgname.tar.bz2 $out || exit 1
cp -p doc/manual/book.html $out/manual.html || exit 1