qubes-linux-template-builder/builder_setup
Marek Marczykowski afc68b641c archlinux: keep downloaded files in $CACHEDIR (new variable)
Do not download anything directly in template-builder root. Also do not
download and extract archlinux iso if existing file is current.
2013-02-16 22:51:01 +01:00

25 lines
310 B
Bash

#!/bin/bash
# Setup env variables
case "$DIST" in
fc*)
DISTRIBUTION=fedora
VERSION=${DIST/fc/}
;;
*)
DISTRIBUTION="$DIST"
VERSION=
;;
esac
if [ -d "scripts_$DIST" ]; then
SCRIPTSDIR="scripts_$DIST"
else
SCRIPTSDIR="scripts_$DISTRIBUTION"
fi
CACHEDIR=cache_$DIST
export SCRIPTSDIR CACHEDIR