scripts

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

commit 5fc8b30e2f85d6788d0dacbbbba505758697fc44
parent b73098a4fbc1519d9e7e909cf5b1637e105ff899
Author: sin <sin@2f30.org>
Date:   Tue Oct  8 15:25:05 +0100

Add script that downloads and installs musl

Diffstat:
domusl | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)
diff --git a/domusl b/domusl @@ -0,0 +1,30 @@ +#!/bin/sh -e + +release=0.9.14 +url= + +if test $1; then + release=$1 +fi + +case $release in +git) + url=git://git.musl-libc.org/musl + git clone $url /tmp/musl + ;; +*) + url=http://www.musl-libc.org/releases/musl-$release.tar.gz + wget -c $url -O /tmp/musl-$release.tar.gz + cd /tmp + tar xzf musl-$release.tar.gz + mv musl-$release musl + cd - + ;; +esac + +cd /tmp/musl +./configure --prefix=/usr/local/musl --exec-prefix=/usr/local \ + --syslibdir=/usr/local/lib +make -j4 +sudo make install +cd -