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
|
2014-07-26 02:30:31 +00:00
|
|
|
echo $DISTRIBUTION $VERSION
|