Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BrunoReX
Created October 13, 2014 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoReX/c3555b24eab2332e1a07 to your computer and use it in GitHub Desktop.
Save BrunoReX/c3555b24eab2332e1a07 to your computer and use it in GitHub Desktop.
diff --git a/scripts/cmake-toolchain-script.sh b/scripts/cmake-toolchain-script.sh
index c24ab34..28295bb 100755
--- a/scripts/cmake-toolchain-script.sh
+++ b/scripts/cmake-toolchain-script.sh
@@ -1,7 +1,8 @@
#!/bin/sh
# cmake-toolchain-script.sh by take_cheeze (takechi101010@gmail.com)
-PSP_CMAKE_PATH=$(psp-config --pspdev-path)/bin
-TOOLCHAIN_SCRIPT_PATH=$(psp-config --psp-prefix)/share/cmake-2.8/Modules/Platform
+DESTDIR=$1
+PSP_CMAKE_PATH=${DESTDIR}$(psp-config --pspdev-path)/bin
+TOOLCHAIN_SCRIPT_PATH=${DESTDIR}$(psp-config --psp-prefix)/share/cmake-2.8/Modules/Platform
## copy toolchain script and psp-cmake
install -d $TOOLCHAIN_SCRIPT_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment