#!/bin/sh -efu

if [ $# -ne 2 ]; then
  printf "Usage $0 <in_file> <out_file>\n"
  exit 1
fi

XDG_RUNTIME_DIR="$(pwd)"\
  qcad -no-dock-icon -no-gui -allow-multiple-instances\
       -autostart /usr/share/qcad/scripts/dxf2pdf.js\
       "$(realpath "$1")" "$(realpath "$2")"
