Skip to content
Browse files

Add module-prep.sh script.

  • Loading branch information...
1 parent 73cd506 commit 99b745d74448865e925d0ac114c2518589160cc6 root committed Feb 16, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 module-prep.sh
View
16 module-prep.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+mkdir kohana || true
+pushd kohana
+
+tar xfz ../kohana-*.tar.gz --strip-components=1
+
+if [ "${KOHANA_MODULE}" == "core" ]; then
+ rm -rf system || true
+ ln -s ../source system || true
+else
+ rm -rf modules/${KOHANA_MODULE} || true
+ ln -s ../../source modules/${KOHANA_MODULE} || true
+fi
+
+popd

0 comments on commit 99b745d

Please sign in to comment.
Something went wrong with that request. Please try again.