Skip to content

Commit

Permalink
Add module-prep.sh script.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 16, 2012
1 parent 73cd506 commit 99b745d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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.