summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xslic3r22
1 files changed, 16 insertions, 6 deletions
diff --git a/slic3r b/slic3r
index a8ddc3d..d00a7c4 100755
--- a/slic3r
+++ b/slic3r
@@ -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[@]}" "$@"