summarylogtreecommitdiffstats
path: root/ltspice.sh
blob: 8ee16f3e67c8948f59789ac6925eef242f051cac (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ltspice"
if [ ! -d "$HOME"/.ltspice ] ; then
   mkdir -p "$HOME"/.ltspice
fi
if [ ! -d $CONFIG_DIR ]; then
   mkdir -p $CONFIG_DIR 
   touch $CONFIG_DIR/LTspiceXVII.ini
fi
export WINEPREFIX=$HOME/.ltspice/env WINEARCH=win64
wine /opt/ltspice/XVIIx64 -ini $CONFIG_DIR/LTspiceXVII.ini "$@"