diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-11-18 14:12:39 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-11-18 14:12:39 +0000 |
commit | 15da008651e9a63a8b220be531a8012d413fe026 (patch) | |
tree | 73611a54cb14b1a5f5e0da1a78925b1da4c3c67e /pkgs/build-support/release/source-tarball.nix | |
parent | bab04acc3a32b4b69b8b02d9bca634e1953e3307 (diff) | |
download | nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar.gz nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar.bz2 nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar.lz nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar.xz nixlib-15da008651e9a63a8b220be531a8012d413fe026.tar.zst nixlib-15da008651e9a63a8b220be531a8012d413fe026.zip |
Slightly generalize `sourceTarball'.
svn path=/nixpkgs/trunk/; revision=18426
Diffstat (limited to 'pkgs/build-support/release/source-tarball.nix')
-rw-r--r-- | pkgs/build-support/release/source-tarball.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/build-support/release/source-tarball.nix b/pkgs/build-support/release/source-tarball.nix index 579127f3a4d6..a3ddc62deeb0 100644 --- a/pkgs/build-support/release/source-tarball.nix +++ b/pkgs/build-support/release/source-tarball.nix @@ -73,33 +73,35 @@ stdenv.mkDerivation ( # Nix buildfarm. (Stratego/XT's autoxt uses it. We should # update it eventually.) echo ${versionSuffix} | sed -e s/pre// > svn-revision - + eval "$preAutoconf" - - if test -f ./bootstrap; then ./bootstrap - elif test -f ./bootstrap.sh; then ./bootstrap.sh - elif test -f ./reconf; then ./reconf + + if test -x ./bootstrap; then ./bootstrap + elif test -x ./bootstrap.sh; then ./bootstrap.sh + elif test -x ./autogen.sh; then ./autogen.sh + elif test -x ./autogen ; then ./autogen + elif test -x ./reconf; then ./reconf elif test -f ./configure.in || test -f ./configure.ac; then autoreconf --install --force --verbose else echo "No bootstrap, bootstrap.sh, configure.in or configure.ac. Assuming this is not an GNU Autotools package." fi - + eval "$postAutoconf" ''; # Cause distPhase to copy tar.bz2 in addition to tar.gz. - tarballs = "*.tar.gz *.tar.bz2"; + tarballs = "*.tar.gz *.tar.bz2 *.tar.xz"; finalPhase = '' - for i in $out/tarballs/*; do + for i in "$out/tarballs/"*; do echo "file source-dist $i" >> $out/nix-support/hydra-build-products done # Try to figure out the release name. releaseName=$( (cd $out/tarballs && ls) | head -n 1 | sed -e 's^\.[a-z].*^^') test -n "$releaseName" && (echo "$releaseName" >> $out/nix-support/hydra-release-name) - ''; # */ + ''; passthru = { inherit src; |