Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
22
export-to-directory.sh
Executable file
22
export-to-directory.sh
Executable 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!"
|
||||
|
||||
Reference in New Issue
Block a user