diff options
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[@]}" "$@" |