diff options
Diffstat (limited to 'slic3r')
-rwxr-xr-x | slic3r | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |