summaryrefslogtreecommitdiff
path: root/auto/build
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 02:35:21 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 02:35:21 +0200
commitac89baf038cdb9d9abfeb439b81562078a573604 (patch)
tree5c8cad12755259803eeabd346b0fc956ab81745d /auto/build
parent0e9c680b1c39584c902b488b461d7a45aaa8a946 (diff)
downloadkanotix-ac89baf038cdb9d9abfeb439b81562078a573604.zip
kanotix-ac89baf038cdb9d9abfeb439b81562078a573604.tar.gz
enabled timestamping for wget (nvidia)
Diffstat (limited to 'auto/build')
-rwxr-xr-xauto/build12
1 files changed, 7 insertions, 5 deletions
diff --git a/auto/build b/auto/build
index 93e2523..b64105c 100755
--- a/auto/build
+++ b/auto/build
@@ -15,11 +15,13 @@ prebuild()
VER="$(grep -o ^VER=.* config/chroot_local-includes/usr/local/bin/install-nvidia-debian.sh|sed s/VER=//)"
ARCH=; [ "$LH_ARCHITECTURE" = "amd64" ] && ARCH="_64"
URL="http://download.nvidia.com/XFree86/Linux-x86$ARCH/$VER/NVIDIA-Linux-x86$ARCH-$VER.run"
- CACHEURL="cache/$(basename "$URL")"
- [ "$LH_CACHE" = "false" ] && CACHEURL="config/chroot_local-includes/usr/src/$(basename "$URL")"
- mkdir -p "$(dirname "$CACHEURL")"
- [ ! -e "$CACHEURL" ] && wget -O"$CACHEURL" "$URL"
- cp "$CACHEURL" "config/chroot_local-includes/usr/src/$(basename "$URL")" 2>/dev/null
+ if [ "$LH_CACHE" = "false" ]; then
+ wget -N -c -P config/chroot_local-includes/usr/src "$URL"
+ else
+ mkdir -p cache
+ wget -N -c -P cache "$URL"
+ cp "cache/$(basename "$URL")" "config/chroot_local-includes/usr/src/$(basename "$URL")"
+ fi
fi
}