summaryrefslogtreecommitdiffstats
path: root/slic3r
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-09-13 00:08:33 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-09-13 00:08:33 +0200
commit5b5b338503b82cde42fb8cdd7791abb61b939111 (patch)
tree94b6aa445cc86976346b101d08277ac488cf36d3 /slic3r
parent8450e9ac59dfb678ae3fc2adca5bb837804710f3 (diff)
downloadbin-5b5b338503b82cde42fb8cdd7791abb61b939111.tar.gz
bin-5b5b338503b82cde42fb8cdd7791abb61b939111.tar.xz
misc changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'slic3r')
-rwxr-xr-xslic3r5
1 files changed, 3 insertions, 2 deletions
diff --git a/slic3r b/slic3r
index d00a7c4..6683b92 100755
--- a/slic3r
+++ b/slic3r
@@ -5,10 +5,11 @@ gitdir="$HOME/git/Slic3r"
#merged="$HOME/.Slic3r/config.ini.merged"
#truncate -s 0 "$merged"
-TMPDIR="`mktemp -d "/tmp/slic3r.XXXXXX"`"
-locallib="$TMPDIR/local-lib-dir"
+TMPDIR="$(mktemp -d "/tmp/${0##*/}.XXXXXX")"
trap "rm -rf '${TMPDIR}'" EXIT TERM
+locallib="$TMPDIR/local-lib-dir"
+
# I don't want to install the libs
mkdir -p "$locallib"
ln -sr "$gitdir/xs/blib/lib/Slic3r/" "$locallib/Slic3r"