Here's my crappy backup/versioning setup if it's o...
# xschem
l
Here's my crappy backup/versioning setup if it's of use to anyone: • Inside the
.control
block in `code_shown.sym`:
Copy code
set f=inverter
write {$f}.raw
shell bash backup.sh $f
• create
backup.sh
in ~/.xschem/simulations:
Copy code
name=$1
stamp=$(date +%Y-%m-%d--%H-%M-%S)
schdir=/home/l/git/fresh-analog/xschem

cp $schdir/$name.sch backups/$name--$stamp.sch
cp $name.spice backups/$name--$stamp.spice
cp $name.raw backups/$name--$stamp.raw
• add backupdir to xschem folders so you can thumb through them with preview:
Copy code
# at end of .xschemrc:
append XSCHEM_LIBRARY_PATH :/home/l/.xschem/simulations/backups
👍 1