Rev Author Line No. Line
3294 kaklik 1 #!/bin/bash
2  
3 ## This script generate alternavive data names (Required by some PCB manufacturers such as Pragoboard.cz)
4 ##
5 ## Usage:
6 ##
7 ## Run this script with prarameter of directory in which Gerber data is located.
8 ##
9 ## Example:
10 ##
11 ## ./gen_PragoBoard.sh /home/kaklik/svnMLAB/Modules/CommRF/GSM01A/CAM_PROFI/
12 ##
13 ## This comand generates new directory PragoBoard with these files:
14 ## bot.gbr mill.gbr plt.gbr pth.exc smb.gbr smt.gbr top.gbr
15 ##
16 ##
17 ## TODO: non plated drill is not properly handled.
18 ##
19  
20 cd $1
21  
22 mkdir ./PragoBoard/
23 cp V1.PHO ./PragoBoard/top.gbr
24 cp V2.PHO ./PragoBoard/bot.gbr
25 cp M1.PHO ./PragoBoard/smt.gbr
26 cp M2.PHO ./PragoBoard/smb.gbr
27 cp T1.PHO ./PragoBoard/plt.gbr
28 cp BOARD.PHO ./PragoBoard/mill.gbr
29 cp DRILL.DRL ./PragoBoard/pth.exc
30 #cp nDRILL.DRL ./PragoBoard/npth.exc #neprokovene vrtani
31  
32