ia64/xen-unstable

changeset 12303:8526df47728f

Add helper script for releasing xm-test binary ISOs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 01 14:27:19 2006 +0000 (2006-11-01)
parents 9ceb1a07a85c
children 83b34fbc6c75
files tools/xm-test/ramdisk/make-release.sh
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/xm-test/ramdisk/make-release.sh	Wed Nov 01 14:27:19 2006 +0000
     1.3 @@ -0,0 +1,47 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +if [ "$1" == "" ]
     1.7 +then
     1.8 +  arch=""
     1.9 +elif [ "$1" == "powerpc" ]
    1.10 +then
    1.11 +  arch="BR_ARCH=powerpc"
    1.12 +else
    1.13 +  echo "Invalid architecture specified." >&2
    1.14 +  exit 1
    1.15 +fi
    1.16 +
    1.17 +set -eu
    1.18 +
    1.19 +tempdir=$(mktemp -d)
    1.20 +
    1.21 +dir=$(dirname "$0")
    1.22 +
    1.23 +cd $(dirname "$dir")
    1.24 +
    1.25 +./autogen
    1.26 +./configure
    1.27 +
    1.28 +cd "$dir"
    1.29 +
    1.30 +rm -Rf buildroot
    1.31 +make $arch initrd.img
    1.32 +
    1.33 +initrd=$(readlink "initrd.img")
    1.34 +prefix=$(basename "$initrd" ".img")
    1.35 +arch=$(echo "$prefix" | sed -e 's/.*-//')
    1.36 +
    1.37 +cp "$initrd" "$tempdir"
    1.38 +
    1.39 +cp "buildroot/.config" "$tempdir/$prefix-buildroot-config"
    1.40 +cp "buildroot/package/busybox/busybox.config" "$tempdir/$prefix-busybox-config"
    1.41 +cp "buildroot/toolchain/uClibc/uClibc.config" "$tempdir/$prefix-uClibc-config"
    1.42 +
    1.43 +mv "buildroot" "$tempdir/buildroot-$arch"
    1.44 +cd $tempdir
    1.45 +rm -Rf "buildroot-$arch"/toolchain_build*
    1.46 +rm -Rf "buildroot-$arch"/build_*
    1.47 +tar cjf "$prefix-buildroot.tar.bz2" "buildroot-$arch"
    1.48 +rm -Rf "buildroot-$arch"
    1.49 +
    1.50 +echo -e "\n\nYour release is in $tempdir."