Merge commit 'c1d65c7f1f6836d4fe961c0a54ea11ff8fdfc62d' as 'cmake'
This commit is contained in:
22
cmake/export-to-directory.sh
Executable file
22
cmake/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