4 dir=$(cd "$(dirname "$0")"; pwd)
5 rpmdir=$(rpm -E %_topdir)
21 xorg-driver-video-fglrx
22 xorg-driver-video-fglrx-legacy-12.x
23 xorg-driver-video-nvidia
29 # autotag from rpm-build-macros
30 # displays latest used tag for a specfile
32 local out spec pkg ref
36 # ensure package ends with .spec
37 spec=${pkg%.spec}.spec
38 # and pkg without subdir
44 if [ -n "$alt_kernel" ]; then
45 ref="refs/tags/auto/${dist}/${pkg}-${alt_kernel}-[0-9]*"
47 ref="refs/tags/auto/${dist}/${pkg}-[0-9]*"
49 out=$(git for-each-ref $ref --sort=-authordate --format='%(refname:short)' --count=1)
58 echo >&2 "Fetching package tags: $*..."
61 if [ ! -e $pkg/$pkg.spec ]; then
62 $rpmdir/builder -g $pkg -ns -r HEAD 1>&2
64 if [ ! -e $pkg/$pkg.spec ]; then
65 # just print it out, to fallback to base pkg name
68 spec=$(autotag $pkg/$pkg.spec)
79 kernel=$(get_last_tags kernel)
80 kernel=$(echo ${kernel#*auto/??/} | tr _ .)
82 for pkg in $pkgs_head; do
83 echo >&2 "Rebuilding $pkg..."
84 $rpmdir/builder -g $pkg -ns
85 $rpmdir/relup.sh -m "rebuild for $kernel" -ui $pkg/$pkg.spec
86 specs="$specs $pkg.spec"
88 $dir/make-request.sh -nd -r -d $dist $specs
91 kernel=$(alt_kernel=longterm get_last_tags kernel)
92 kernel=$(echo ${kernel#*auto/??/} | tr _ .)
94 if [ -n "$pkgs_longterm" ]; then
95 for pkg in $pkgs_longterm; do
96 echo >&2 "Rebuilding $pkg..."
97 $rpmdir/builder -g $pkg -ns
98 $rpmdir/relup.sh -m "rebuild for $kernel" -ui $pkg/$pkg.spec
99 specs="$specs $pkg.spec"
101 # first build with main pkg (userspace), later build from tag
102 $dir/make-request.sh -nd -r -d $dist --without kernel $specs
104 specs=$(get_last_tags $pkgs_head $pkgs_longterm)
105 $dir/make-request.sh -nd -r -d $dist --kernel longterm --without userspace $specs
108 # try to parse all args, filling them with last autotag
109 while [ $# -gt 0 ]; do
111 --kernel|--with|--without)
124 specs=$(get_last_tags $specs)
125 $dir/make-request.sh -nd -r -d $dist $args $specs