Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (18 sloc) 447 Bytes
#!/bin/bash
NAME=$(basename $(pwd))
DST=/tmp/gerber
EXT="*.gbl *.gbs *.gbo *.gbr *.gtl *.gts *.gto *.drl"
mkdir -p ${DST}
rm -f ${DST}/*
UNIQUE=$(date +%Y%m%d%H%M)
cp ${NAME}-B_Cu.gbl ${DST}
cp ${NAME}-B_Mask.gbs ${DST}
cp ${NAME}-B_SilkS.gbo ${DST}
cp ${NAME}-Edge_Cuts.gbr ${DST}
cp ${NAME}-F_Cu.gtl ${DST}
cp ${NAME}-F_Mask.gts ${DST}
cp ${NAME}-F_SilkS.gto ${DST}
cp ${NAME}.drl ${DST}
cd ${DST}
zip -r ${NAME}_${UNIQUE}.zip ${EXT}
# FIN