]> git.ozlabs.org Git - next-scripts/blob - make_tree_file
Add the new tree to the history branch
[next-scripts] / make_tree_file
1 #!/bin/bash
2
3 mkdir Next
4
5 echo 'Trees included into this release:
6
7 Name            Type    URL
8 ----            ----    ---' > Next/Trees
9
10 IFS='   '
11 while read email type name url ref; do
12         [[ "$email" =~ '^#.*$' ]] && continue
13         tab="\t"
14         [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
15         [ "$type" = "git" ] && url="$url#$ref"
16         printf "%s$tab%s\t%s\n" $name $type $url
17 done <../real_control >>Next/Trees
18
19 cp ../quilt-import.log ../merge.log Next/.
20
21 d=$(date '+%Y%m%d')
22
23 printf "%s-next-%s\n" "" $d >localversion-next
24
25 git add Next localversion-next
26 git commit -s -v -a -m "Add linux-next specific files"
27 git tag "next-$d"
28 git update-ref refs/heads/stable refs/remotes/origin/master
29
30 # Stitch the new tree into the history branch
31 new_ref=$(echo "next-$d" | git commit-tree 'HEAD^{tree}' -p history -p HEAD)
32 git update-ref -m "next-$d" refs/heads/history $new_ref
33
34 exit 0