Benutzer-Werkzeuge

Webseiten-Werkzeuge


de:koarrl_alzdosemu

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
de:koarrl_alzdosemu [2016/01/13 17:30]
koarrl
de:koarrl_alzdosemu [2016/01/27 17:53] (aktuell)
koarrl
Zeile 424: Zeile 424:
 ###############################################################################​ ###############################################################################​
 # #
-#       ​LaunchCAD-0.01: a tool which determines whether the+#       ​LaunchCAD-0.02: a tool which determines whether the
 #       ​specified schematic file is to be opened with OrCad or EAGLE #       ​specified schematic file is to be opened with OrCad or EAGLE
 #       and then launches the appropriate CAD system #       and then launches the appropriate CAD system
-#       (part of mc.ext additions by koarrl Jan 13, 2016)+#       (part of mc.ext additions by koarrl Jan 27, 2016)
 # #
 ###############################################################################​ ###############################################################################​
Zeile 434: Zeile 434:
 # ---- calling OrCAD386 in DOSemu minimum environment ------------------------- # ---- calling OrCAD386 in DOSemu minimum environment -------------------------
 # (this depends on a DOSemu installation with a stripped-down OrCAD386) # (this depends on a DOSemu installation with a stripped-down OrCAD386)
 +# NOTE: "​$1"​ must be in quotes because of possible whitespaces in file or path
  
 orcSDT() orcSDT()
Zeile 447: Zeile 448:
  
 # in temporary DOSemu project folder: create symlink --> work file # in temporary DOSemu project folder: create symlink --> work file
-ln -f -s `pwd`/​$WFILE ~/​$DOSROOT/​$EMUPATH/​$WFILE+ln -f -s `pwd`/"$WFILE" ​~/​$DOSROOT/​$EMUPATH/​"$WFILE"
  
 # the specific autoexec.sdt is constructed here; # the specific autoexec.sdt is constructed here;
Zeile 456: Zeile 457:
 echo "​c:"​ >> ~/​$DOSROOT/​autoexec.bat echo "​c:"​ >> ~/​$DOSROOT/​autoexec.bat
 echo "cd \\$EMUPATH"​ >> ~/​$DOSROOT/​autoexec.bat echo "cd \\$EMUPATH"​ >> ~/​$DOSROOT/​autoexec.bat
-echo "​draft.exe $WFILE"​ >> ~/​$DOSROOT/​autoexec.bat+echo "​draft.exe ​""​$WFILE"​ >> ~/​$DOSROOT/​autoexec.bat
 echo "​exitemu.com"​ >> ~/​$DOSROOT/​autoexec.bat echo "​exitemu.com"​ >> ~/​$DOSROOT/​autoexec.bat
  
Zeile 475: Zeile 476:
  
 # OrCAD 32bit *.sch # OrCAD 32bit *.sch
-ORCSCH=`head -c32 $1|grep -a 'OrCAD 32bit Schematic'​`+ORCSCH=`head -c32 "$1"|grep -a 'OrCAD 32bit Schematic'​`
  
 # old EAGLE (mixed-binary) *.sch # old EAGLE (mixed-binary) *.sch
-EAGSCH=`head -c144 $1|grep -a '​Top'​|grep -a '​Route2'​`+EAGSCH=`head -c144 "$1"|grep -a '​Top'​|grep -a '​Route2'​`
  
 # new EAGLE (XML) *.sch # new EAGLE (XML) *.sch
-EA6SCH=`head -c100 $1|grep '<​!DOCTYPE eagle SYSTEM "​eagle.dtd">'​`+EA6SCH=`head -c100 "$1"|grep '<​!DOCTYPE eagle SYSTEM "​eagle.dtd">'​`
  
 # These signature strings are not empty if file type matches! # These signature strings are not empty if file type matches!
 if [ -n "​$EAGSCH$EA6SCH" ​ ]; then if [ -n "​$EAGSCH$EA6SCH" ​ ]; then
-    $EAGLE $1+    $EAGLE ​"$1"
     exit     exit
 fi fi
  
 if [ -n "​$ORCSCH" ​ ]; then if [ -n "​$ORCSCH" ​ ]; then
-    orcSDT $1+    orcSDT ​"$1"
     exit     exit
 fi fi
de/koarrl_alzdosemu.txt · Zuletzt geändert: 2016/01/27 17:53 von koarrl