This small script was written a few months ago in the hopes that
sometime in the future it would be somewhat usable. fenn has recently
got me hooked on writing unit tests, so maybe I'll go do that soon.
Note that this is concerning the backend toolchain, so don't get
confused. (I also admit that I don't have a lot of experience making
new make scripts, so it's possible that there's something critical
being left out.)
#######
#!/bin/bash
# fablab shelltrance 2009
# kan...@gmail.com
# hardware package creation
fablab.py startproject washingmachine
python manage.py listbom > washingmachine.bom
#brlcad/heekscad voodoo magic here
python manage.py add-dependency "metal-bending"
agx-package new -o washingmachine.skdb washingmachine
# someone somewhere else
agx-get washingmachine.skdb
cd /hardware/washingmachine/
./configure
make instructable
make install
reqtools washingmachine.skdb > TOOLS
if [test -n `difftool --base=/etc/fablab/inventory TOOLS`] then
cat washingmachine.bom > /dev/checkout
# physical organization bins
mkbin toys
# diybio protocols
# someone somewhere else
mkdir ~/diybio/projects/
cd ~/diybio/projects/
wget http://heybryan.org/~bbishop/docs/protocols/pcr.xml
consumables pcr.xml > CONSUMABLES
reqtools pcr.xml > TOOLS
if [test -n `difftool --base=/etc/fablab/inventory TOOLS`] then
cat CONSUMABLES > /dev/checkout ;
else
difftool --base=/etc/fablab/inventory TOOLS > ORDER-REQUEST
cat ORDER-REQUEST | mail -s "Tool discrepancy alert" root@fablab
echo "Your tools will arrive shortly. Perhaps you would like to build
them yourself?"
fi
# DEBIAN PACKAGE SINGULARITY
# estimated 100,000 packages by 2006
#######
Anyway, while my server is down, I figured I'd post this since it does
more good here than sitting on my hard drive accumulating dusty
leptons.