shithub: pokered

Download patch

ref: 81c6bed27d4251c90ebff8475398c69e22781966
parent: 20c01389cc8b5cbea59796ee0825fcd877c15fef
author: yenatch <yenatch@gmail.com>
date: Sun Dec 8 16:40:18 EST 2013

init.sh for lazy installs

--- a/INSTALL.md
+++ b/INSTALL.md
@@ -12,27 +12,17 @@
 
 	sudo apt-get install make gcc bison git python python-setuptools
 
-Install **rgbds**, a Game Boy assembler:
 
-	git clone git://github.com/bentley/rgbds.git
-	cd rgbds
-	make
-	sudo make install
+Set up the **pokered** repository:
 
-	cd ..
-
-Set up the pokered repository:
-
 	git clone git://github.com/iimarckus/pokered.git
 	cd pokered
 
-	git submodule init
-	git submodule update
+	./init.sh
 
-	sudo easy_install pip
-	pip install -r extras/requirements.txt
+Copy the Pokémon Red rom to this directory. Name it **baserom.gbc**.
 
-Put your base rom in the pokered repository. Name it "baserom.gbc".
+Now **pokered.gbc** can be built from source.
 
 	make red
 
--- /dev/null
+++ b/init.sh
@@ -1,0 +1,16 @@
+#!/bin/sh
+
+# install rgbds
+git clone git://github.com/bentley/rgbds.git && \
+cd rgbds && \
+make && \
+sudo make install && \
+cd .. && \
+rm -rf rgbds
+
+# set up the submodule (extras/)
+git submodule init && \
+git submodule update && \
+sudo easy_install pip && \
+pip install -r extras/requirements.txt
+