# HG changeset patch # User Rob Landley # Date 1256555805 18000 # Node ID 5660a438421b6319ed0c71b08732061dfcba0ff2 # Parent 4bfe2b34dd9fd3731287c34a8f9d1361b8046ba8 Make system-image.sh write out dev-environment.sh from a here document. diff -r 4bfe2b34dd9f -r 5660a438421b system-image.sh --- a/system-image.sh Mon Oct 26 06:09:29 2009 -0500 +++ b/system-image.sh Mon Oct 26 06:16:45 2009 -0500 @@ -189,7 +189,14 @@ # filesystem, kernel, and base kernel command line arguments in case you want # to use an emulator other than qemu, but put the default case in qemu_defaults -cp "$SOURCES/toys/dev-environment.sh" "$STAGE_DIR" && +cat > "$STAGE_DIR/dev-environment.sh" << EOF && +#!/bin/sh + +# Run the emulator with default values intended for a development environment. + +QEMU_MEMORY=256 HDB=hdb.img HDBMEGS=2048 ./run-emulator.sh +EOF +chmod +x "$STAGE_DIR/dev-environment.sh" && sed -e 's/^ARCH=.*/ARCH='"$ARCH"/ "$SOURCES/toys/run-emulator.sh" > \ "$STAGE_DIR/run-emulator.sh" && chmod +x "$STAGE_DIR/run-emulator.sh" &&