2017-01-10 14:04:02 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-12-25 01:17:24 +01:00
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo "Enter the path to the packages3d folder. This script will symlink all 3d models into this folder"
|
|
|
|
echo -n "Path: "
|
|
|
|
read packagedir
|
|
|
|
else
|
|
|
|
packagedir="$1"
|
|
|
|
fi
|
2017-01-10 14:04:02 +01:00
|
|
|
|
|
|
|
shimattadir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $packagedir
|
|
|
|
for lib in $shimattadir/*.shapes3d; do
|
|
|
|
echo "$lib"
|
|
|
|
if [[ -d "$lib" ]]; then
|
|
|
|
ln -s "$lib"
|
|
|
|
fi
|
|
|
|
done
|