OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-ia64-gcc48?expand=0&rev=3
34 lines
508 B
Bash
34 lines
508 B
Bash
#!/bin/bash
|
|
# This script is called automatically during autobuild checkin.
|
|
|
|
case $0 in
|
|
\./*)
|
|
here=$PWD
|
|
;;
|
|
*/*)
|
|
here=${0%/*}
|
|
;;
|
|
*)
|
|
here=$PWD
|
|
;;
|
|
esac
|
|
pkg=${here##*/}
|
|
pkg=${pkg#cross-}
|
|
case ${pkg} in
|
|
gcc*.*)
|
|
# Handle maintainance projects with .$REPO suffix
|
|
suffix=${pkg}
|
|
suffix=${suffix%%\.*}
|
|
set ${suffix#gcc}
|
|
;;
|
|
gcc-*)
|
|
suffix=${pkg}
|
|
set ${suffix#*-}-
|
|
;;
|
|
gcc[0-9]*)
|
|
suffix=${pkg}
|
|
set ${suffix#gcc}
|
|
;;
|
|
esac
|
|
. ${here}/change_spec
|