Permalink
Browse files

add git checker and psplibraries build step

  • Loading branch information...
1 parent 33bdd41 commit 63a18861c488171618be4889111b5c8f804f0dbe @take-cheeze committed Mar 2, 2012
View
@@ -0,0 +1,5 @@
+#!/bin/sh
+# check-git.sh by Takeshi Watanabe (takechi101010@gmail.com)
+
+ ## Check for git.
+ git --version 1> /dev/null || { echo "ERROR: Install git before continuing."; exit 1; }
View
@@ -2,7 +2,7 @@
## Install the required packages.
sudo apt-get install g++ build-essential autoconf automake bison flex \
libncurses5-dev libreadline-dev libusb-dev texinfo libgmp3-dev \
- libmpfr-dev libelf-dev libmpc-dev mercurial subversion unzip
+ libmpfr-dev libelf-dev libmpc-dev mercurial subversion unzip git
## Build and install the toolchain + sdk. A login script will automatically
## be created in /etc/profile.d/ if possible.
View
@@ -14,7 +14,7 @@
1) Set up your environment by installing the following software:
autoconf, automake, bison, flex, gcc, g++/gcc-c++, libusb-dev, make, ncurses,
- patch, readline, subversion, texinfo, wget, mpc, gmp, libelf, mpfr
+ patch, readline, subversion, texinfo, wget, mpc, gmp, libelf, mpfr, git
2) Set the PSPDEV and PATH environmental variables:
@@ -0,0 +1,19 @@
+#!/bin/sh
+# psplibraries.sh by Takeshi Watanabe (takechi101010@gmail.com)
+
+ ## clear CC and CXX
+ unset CC
+ unset CXX
+
+ ## Exit on errors
+ set -e
+
+ ## Download the source code.
+ ls psplibraries 1> /dev/null || git clone https://github.com/pspdev/psplibraries.git
+
+ ## Enter the source directory.
+ cd psplibraries
+ git pull
+
+ ## Configure the build.
+ ./libraries.sh
File renamed without changes.

0 comments on commit 63a1886

Please sign in to comment.