2019-02-05 11:46:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This script is called automatically during autobuild checkin.
|
2019-02-01 13:35:41 +00:00
|
|
|
|
2019-02-05 11:46:31 +00:00
|
|
|
case $0 in
|
|
|
|
\./*)
|
|
|
|
here=$PWD
|
|
|
|
;;
|
|
|
|
*/*)
|
|
|
|
here=${0%/*}
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
here=$PWD
|
|
|
|
;;
|
|
|
|
esac
|
2019-02-05 12:02:54 +00:00
|
|
|
pkg=${here##*/}
|
|
|
|
pkg=${pkg#cross-}
|
|
|
|
case ${pkg} in
|
2019-02-05 11:46:31 +00:00
|
|
|
gcc*.*)
|
|
|
|
# Handle maintainance projects with .$REPO suffix
|
2019-02-05 12:02:54 +00:00
|
|
|
suffix=${pkg}
|
2019-02-05 11:46:31 +00:00
|
|
|
suffix=${suffix%%\.*}
|
|
|
|
set ${suffix#gcc}
|
|
|
|
;;
|
|
|
|
gcc-*)
|
2019-02-05 12:02:54 +00:00
|
|
|
suffix=${pkg}
|
2019-02-05 11:46:31 +00:00
|
|
|
set ${suffix#*-}-
|
|
|
|
;;
|
|
|
|
gcc[0-9]*)
|
2019-02-05 12:02:54 +00:00
|
|
|
suffix=${pkg}
|
2019-02-05 11:46:31 +00:00
|
|
|
set ${suffix#gcc}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
. ${here}/change_spec
|