scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit 8433905a5181862c1762ba5aec431400d2371b3b
parent 5fc8b30e2f85d6788d0dacbbbba505758697fc44
Author: sin <sin@2f30.org>
Date:   Mon, 14 Oct 2013 13:40:24 +0100

Allow user to override fetch and build dir for the domusl script

Diffstat:
Mdomusl | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/domusl b/domusl @@ -1,7 +1,11 @@ #!/bin/sh -e +# +# A simple musl installation script. Override $out to build +# in another directory. release=0.9.14 url= +out=/tmp if test $1; then release=$1 @@ -10,19 +14,19 @@ fi case $release in git) url=git://git.musl-libc.org/musl - git clone $url /tmp/musl + git clone $url $out/musl ;; *) url=http://www.musl-libc.org/releases/musl-$release.tar.gz - wget -c $url -O /tmp/musl-$release.tar.gz - cd /tmp + wget -c $url -O $out/musl-$release.tar.gz + cd $out tar xzf musl-$release.tar.gz mv musl-$release musl cd - ;; esac -cd /tmp/musl +cd $out/musl ./configure --prefix=/usr/local/musl --exec-prefix=/usr/local \ --syslibdir=/usr/local/lib make -j4