Last active
April 26, 2017 15:29
-
-
Save syhe/d405c5eab96a63f9b6c658936a342c78 to your computer and use it in GitHub Desktop.
Simple modman test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
MODMAN="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/modman" | |
TMPDIR=$(mktemp -d) | |
function cleanup () { | |
rm -rfv "$TMPDIR" | |
} | |
trap cleanup EXIT | |
modmandir=".modman" | |
cd "$TMPDIR" | |
mkdir basedir | |
$MODMAN init "$PWD/basedir" | |
mkdir $modmandir/Test_Module | |
touch $modmandir/Test_Module/modman | |
echo "src/testfile testlink" > $modmandir/Test_Module/modman | |
mkdir $modmandir/Test_Module/src | |
touch $modmandir/Test_Module/src/testfile | |
$MODMAN deploy Test_Module --basedir "basedir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment