dot

packages and services management
Log | Files | Refs | README

commit 16934cefa503b2c1ae6307695b25beae0b89c7d9
parent 41d8aee9c9885ba9af35d49223e9950a557af36b
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat, 22 Jul 2017 01:08:54 +0200

busybox compatible

Diffstat:
MBUILD | 4++--
MDOWNLOAD | 12++++++------
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/BUILD b/BUILD @@ -11,8 +11,8 @@ if [ -f "$ETC/$1/build" ] then sh "$ETC/$1/build" else - find "$ETC/${PWD##*/}" -name '*.diff' | xargs -n 1 patch -N -p 1 -i - find "$ETC/${PWD##*/}" -name 'config.*' | xargs -I % cp -f % . + find "$ETC/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} ';' + find "$ETC/${PWD##*/}" -name 'config.*' -exec cp -f {} . ';' [ -f ./configure ] && ./configure --prefix="$PREFIX" make && make PREFIX="$PREFIX" install clean fi diff --git a/DOWNLOAD b/DOWNLOAD @@ -4,18 +4,18 @@ read url < "$ETC/$1/url" [ -e "$SRC/$1" ] && exit 1 -mkdir -p -- "$SRC/$1" && cd -- "$SRC/$1" +mkdir -p "$SRC/$1" && cd "$SRC/$1" -wget -O - -- "$url" | case "$url" in +wget -O - "$url" | case "$url" in (*.tar.bz2 | *.tbz2) bunzip2 -d ;; (*.tar.gz | *.tgz ) gzip -d ;; (*.tar.xz | *.txz ) xz -d ;; (*.tar ) tee ;; esac | tar -xf - -if [ $(ls -- "$SRC/$1" | wc -l) = 1 ] +if [ $(ls "$SRC/$1" | wc -l) = 1 ] then - dir=$(ls -- "$SRC/$1") - find -- "$SRC/$1" -mindepth 2 -maxdepth 2 | xargs -I % mv -- % "$SRC/$1" - rmdir -- "$SRC/$1/$dir" + dir=$(ls "$SRC/$1") + find "$SRC/$1" -mindepth 2 -maxdepth 2 -exec mv {} "$SRC/$1" ';' + rmdir "$SRC/$1/$dir" fi