2013-02-16 15:00:50 +00:00
|
|
|
#!/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
|
|
|
|
|
2013-02-16 16:17:42 +00:00
|
|
|
CACHEDIR=cache_$DIST
|
|
|
|
|
|
|
|
export SCRIPTSDIR CACHEDIR
|