46 lines
592 B
Bash
Executable File
46 lines
592 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Setup env variables
|
|
|
|
case "$DIST" in
|
|
fc*)
|
|
DISTRIBUTION=fedora
|
|
VERSION=${DIST/fc/}
|
|
;;
|
|
wheezy)
|
|
DISTRIBUTION=debian
|
|
VERSION=7
|
|
;;
|
|
jessie)
|
|
DISTRIBUTION=debian
|
|
VERSION=8
|
|
;;
|
|
trusty)
|
|
DISTRIBUTION=qubuntu
|
|
VERSION=14.04
|
|
;;
|
|
utopic)
|
|
DISTRIBUTION=qubuntu
|
|
VERSION=14.10
|
|
;;
|
|
vivid)
|
|
DISTRIBUTION=qubuntu
|
|
VERSION=15.04
|
|
;;
|
|
*)
|
|
DISTRIBUTION="$DIST"
|
|
VERSION=
|
|
;;
|
|
esac
|
|
|
|
if [ -d "scripts_$DIST" ]; then
|
|
SCRIPTSDIR="scripts_$DIST"
|
|
else
|
|
SCRIPTSDIR="scripts_$DISTRIBUTION"
|
|
fi
|
|
|
|
CACHEDIR=cache_$DIST
|
|
|
|
export SCRIPTSDIR CACHEDIR
|
|
echo $DISTRIBUTION $VERSION
|