Split $DIST to distribution name and version (builder_setup script) and search for scripts first $DIST-specific, but then for given distribution. Also move out some Fedora-specific things to scripts_fc17.pull/1/head
parent
746cb149c9
commit
add64aa2e4
@ -0,0 +1,22 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
export SCRIPTSDIR
|
Loading…
Reference in new issue