scripts

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

domusl (572B)


      1 #!/bin/sh
      2 #
      3 # A simple musl installation script.  Override $out to build
      4 # in another directory.
      5 
      6 release=0.9.14
      7 url=
      8 out=/tmp
      9 
     10 if test $1; then
     11 	release=$1
     12 fi
     13 
     14 case $release in
     15 git)
     16 	url=git://git.musl-libc.org/musl
     17 	git clone $url $out/musl
     18 	;;
     19 *)
     20 	url=http://www.musl-libc.org/releases/musl-$release.tar.gz
     21 	wget -c $url -O $out/musl-$release.tar.gz
     22 	cd $out
     23 	tar xzf musl-$release.tar.gz
     24 	mv musl-$release musl
     25 	cd -
     26 	;;
     27 esac
     28 
     29 cd $out/musl
     30 ./configure --prefix=/usr/local/musl --exec-prefix=/usr/local \
     31 	    --syslibdir=/usr/local/lib
     32 make -j4
     33 sudo make install
     34 cd -