diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-05-07 22:50:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-05-07 22:50:56 +0200 |
commit | 4202255012a7c6ab2b5a82e546ac3332332e07e1 (patch) | |
tree | 0c096736add1d000b19789a8d8fdd53aff537851 /slic3r | |
parent | 141a878133b9008a556fc76f421fc2500a914199 (diff) | |
download | bin-4202255012a7c6ab2b5a82e546ac3332332e07e1.tar.gz bin-4202255012a7c6ab2b5a82e546ac3332332e07e1.tar.xz |
slic3r: adjust the starter script for newer versions of slic3r
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'slic3r')
-rwxr-xr-x | slic3r | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -1,14 +1,24 @@ #!/bin/bash -merged="$HOME/.Slic3r/config.ini.merged" +gitdir="$HOME/git/Slic3r" -truncate -s 0 "$merged" +#merged="$HOME/.Slic3r/config.ini.merged" +#truncate -s 0 "$merged" + +TMPDIR="`mktemp -d "/tmp/slic3r.XXXXXX"`" +locallib="$TMPDIR/local-lib-dir" +trap "rm -rf '${TMPDIR}'" EXIT TERM + +# I don't want to install the libs +mkdir -p "$locallib" +ln -sr "$gitdir/xs/blib/lib/Slic3r/" "$locallib/Slic3r" +ln -sr "$gitdir/xs/blib/arch/auto/" "$locallib/auto" for config in "$HOME"/.Slic3r/*/config.ini; do - #opts+=(--load "$config") - cat "$config" >> "$merged" + opts+=(--load "$config") + #cat "$config" >> "$merged" done -opts+=(--load "$merged") +#opts+=(--load "$merged") -perl "$HOME"/git/Slic3r/slic3r.pl "${opts[@]}" "$@" +perl -I"$locallib" "$gitdir/slic3r.pl" "${opts[@]}" "$@" |