X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Ffuncs.sh;h=0a1571f2b21c7a040e3c04af10b4ec0cef899eca;hp=09292d08de310c634feb1b791a0cca7399fdb779;hb=8c95bfb0140ca5aadd3fe73a4f69d6b2373cc066;hpb=98bf9c9e3ecaa6736dcb066d0c76e20610fa9725 diff --git a/build/funcs.sh b/build/funcs.sh index 09292d0..0a1571f2 100644 --- a/build/funcs.sh +++ b/build/funcs.sh @@ -144,6 +144,9 @@ autodetect_distro() { "SUSE LINUX") name="sles" ;; + "Fedora") + name="fc" + ;; *) fatal 1 "I don't know what distro name $name and version $version is.\nEither update autodetect_distro() or use the --distro argument." ;; @@ -181,7 +184,8 @@ autodetect_target() { rhel5) target="2.6-rhel5";; rhel6) target="2.6-rhel6";; sles10) target="2.6-sles10";; - sles11) target="2.6-sles11";; + sles11) target="$(uname -r | cut -d . -f 1,2)-sles11";; + fc15) target="2.6-fc15";; *) fatal 1 "I don't know what distro $distro is.\nEither update autodetect_target() or use the --target argument.";; esac