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