# This means I get the right tag if I finish after midnight
d=$(date --date "5 hours ago" '+%Y%m%d')
-printf "%s-next-%s\n" "" $d >localversion-next
+printf -- "-next-%s\n" $d >localversion-next
git add Next localversion-next
git commit -s -v -a -m "Add linux-next specific files for $d"
new_ref=$(echo "next-$d" | git commit-tree 'HEAD^{tree}' -p history -p HEAD)
git update-ref -m "next-$d" refs/heads/history $new_ref
-l=$(git describe --match "v*" --abbrev=0)
-l=${l#v}
cat >../abat-script-$d <<EOF
option title linux-next $d boot test
class power5 type="IBM,9124-720 eServer OpenPower 720"