Fix handling of examples folder (fixes #795).

master
Torsten Paul 2014-05-18 19:40:33 +02:00
parent 13d46e994e
commit 34ebcb1a43
1 changed files with 5 additions and 2 deletions

View File

@ -339,8 +339,11 @@ esac
if [ -n $EXAMPLESDIR ]; then
echo $EXAMPLESDIR
mkdir -p $EXAMPLESDIR
cp examples/* $EXAMPLESDIR
chmod -R 644 $EXAMPLESDIR/*
rm -f examples.tar
tar cf examples.tar examples
cd $EXAMPLESDIR/.. && tar xf $OPENSCADDIR/examples.tar && cd $OPENSCADDIR
rm -f examples.tar
chmod -R 644 $EXAMPLESDIR/*/*
fi
if [ -n $LIBRARYDIR ]; then
echo $LIBRARYDIR