dot

packages and services management
Log | Files | Refs | README

commit e8767c8eee824bdbd2fa131882f0e36a33c5a913
parent fc48d26598387e82af744fb983657ce693ba1e78
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Wed, 24 May 2017 16:54:58 +0200

added awk

Diffstat:
Mbin/build | 10+++++++++-
Abuild/awk/build | 3+++
Abuild/awk/url | 1+
3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/bin/build b/bin/build @@ -56,8 +56,16 @@ download() esac mkdir -p "$OPT/$1" "$SRC" + wget -qO - "$url" | tar -xv"$opt"f - -C "$OPT/$1" - mv "$OPT/$1"/* "$SRC/$1" + + if [ "`ls "$OPT/$1" | wc -l`" -gt 1 ] + then + mv "$OPT/$1" "$SRC/$1" + mkdir -p "$OPT/$1" + else + mv "$OPT/$1"/* "$SRC/$1" + fi } diff --git a/build/awk/build b/build/awk/build @@ -0,0 +1,3 @@ +sed '/^YACC / s/ -S//' makefile > Makefile +make -f Makefile +mv a.out "$PREFIX/bin/awk" diff --git a/build/awk/url b/build/awk/url @@ -0,0 +1 @@ +http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz