3 reldir=$HOME/linux-libre/releases
5 key=474402C8C582DAFBE389C427BCB7CF877E7D47A7
11 rup=$(echo "$rel" | sed 's,-gnu[0-9]*$,,')
12 cbr=$(echo "$rup" | sed 's,\(\.\|-rc\)[0-9]*$,,')
14 if test -d $reldir/$rel; then
15 echo $reldir/$rel exists >&2
19 if test -h $reldir/LATEST-$cbr.0; then
20 prev0=$(readlink $reldir/LATEST-$cbr.0)
21 prevn=$(readlink $reldir/LATEST-$cbr.N)
22 elif test -h $reldir/LATEST-$rup.N; then
24 prev0=$(readlink $reldir/LATEST-$cbr.0)
25 prevn=$(readlink $reldir/LATEST-$cbr.N)
27 echo Neither $reldir/LATEST-$cbr.0 nor $reldir/LATEST-$rup.N exist >&2
31 DATE=$(git cat-file -p incr/v$rel |
32 gawk '/^(author|tagger)/ {
33 print strftime(PROCINFO["strftime"], $(NF-1))
35 export GIT_COMMITTER_DATE=$DATE GIT_AUTHOR_DATE=$DATE &&
37 while test -f linux-libre-$rel.patck; do
38 echo please verify linux-libre-$rel.patck and move it away to complete the release
44 { { git reset --soft -q scripts/$cbr &&
45 otop=$(git rev-parse --verify -q HEAD); } ||
46 echo $rel | grep -q -e -rc; } &&
47 { git commit -a -S$key -m "GNU Linux-libre $rel scripts" ||
48 if git status -su | grep .; then
52 case $rup:$(git rev-parse --verify -q HEAD) in
53 *-rc*:* | "$cbr":*) forcetag=: ;;
54 *:"$otop") forcetag=false ;;
58 git tag -m "GNU Linux-libre $rel scripts" -s -u $key \
61 git checkout scripts/$cbr &&
62 git reset --hard scripts/v$rel &&
67 for x in scripts sources logs; do
68 if git rev-parse --verify -q $x/v$rel > /dev/null ; then
69 git tag public/$x/v$rel $x/v$rel &&