blob: ae00dbfd710b0789b9253c8a31bb80c291f17c20 [file] [log] [blame]
Patrick Georgif61c9e92015-07-13 22:48:46 +02001#!/bin/bash
2# $1: new version name
3set -e
4if [ -z "$1" ]; then
5 echo "usage: $0 version"
6 echo "tags a new coreboot version and creates a tar archive"
7 exit 1
8fi
9git clone --recurse-submodules http://review.coreboot.org/coreboot.git coreboot-$1
10cd coreboot-$1
11git submodule update --init --checkout
12git tag -a --force $1 -m "coreboot version $1"
13printf "$1-$(git log --pretty=%H|head -1)\n" > .coreboot-version
14cd ..
15tar --exclude-vcs --exclude=coreboot-${1}/3rdparty/blobs -cvf - coreboot-${1} |xz -9 > coreboot-${1}.tar.xz
16tar --exclude-vcs -cvf - coreboot-${1}/3rdparty/blobs |xz -9 > coreboot-blobs-${1}.tar.xz