Squashed 'cmake/' content from commit 2d25566

git-subtree-dir: cmake
git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
Ryan Pavlik
2010-11-11 10:59:10 -06:00
commit c1d65c7f1f
177 changed files with 15885 additions and 0 deletions

22
export-to-directory.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
src="$(dirname $(readlink -f $0))"
if [ "x$1" = "x-f" ]; then
dst="$(readlink -mn $2)/"
args="-f"
else
dst="$(readlink -mn $1)/"
args="$2"
fi
echo "Exporting the modules from '$src' to '$dst'"
mkdir -p $dst
(
cd "$src"
git checkout-index -a $args "--prefix=$dst"
)
echo "Done!"