OctoPrint/SkeinPyPy/skeinforge_application/runskeinforge.sh
daid 77d04ceab8 Removed patches for different skeinforge versions. Only SF48 now.
Updated build script to create win32/linux/macos versions.
Fixed the defaults to they work with PLA.
Fixed the temperature plugin default "ON" problem.
Removed all profiles except for PLA.
2012-02-10 17:20:03 +01:00

26 lines
674 B
Bash
Executable file

#!/bin/sh
#
# Utility script for keeping track of which preference settings a file was processed
# with, by copying the current preferences to a date-tagged directory together
# with the output files.
#
# Usage: runskeinforge.sh <model.gts>
#
dir=`dirname $1`
file=`basename $1`
for s in .gts .GTS .stl .STL; do
if [ ! `basename $file $s` = $file ]; then suffix=$s; fi
done
if [ -n $suffix ]; then
filename=`basename $file $suffix`
newdir=$filename-`date +%m%d%H%M`
mkdir -p $newdir/skeinforge-prefs
cp $1 $newdir
cp ~/.skeinforge/*.csv $newdir/skeinforge-prefs
python skeinforge.py $newdir/$filename$suffix
echo $PWD/$newdir/${filename}_export.gcode
fi