changeset 864:5660a438421b

Make system-image.sh write out dev-environment.sh from a here document.
author Rob Landley <rob@landley.net>
date Mon, 26 Oct 2009 06:16:45 -0500
parents 4bfe2b34dd9f
children 15522b490e53
files system-image.sh
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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" &&