3294 |
kaklik |
1 |
#!/bin/bash |
|
|
2 |
|
3819 |
kaklik |
3 |
## This script generate alternative data names (Required by some PCB manufacturers such as Pragoboard.cz) |
3294 |
kaklik |
4 |
## |
|
|
5 |
## Usage: |
|
|
6 |
## |
3819 |
kaklik |
7 |
## Run this script with parameter of directory in which Gerber data is located. |
3294 |
kaklik |
8 |
## |
|
|
9 |
## Example: |
|
|
10 |
## |
3819 |
kaklik |
11 |
## ./gen_PragoBoard.sh /home/kaklik/svnMLAB/Modules/CommRF/GSM01A/CAM_PROFI/ GSM01A |
3294 |
kaklik |
12 |
## |
3819 |
kaklik |
13 |
## This command generates new directory PragoBoard with these files: |
3294 |
kaklik |
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 |
|
3581 |
kaklik |
24 |
# from MLAB standard file names generated mainly by PADS PCB software. |
3294 |
kaklik |
25 |
|
3581 |
kaklik |
26 |
#cp V1.PHO ./PragoBoard/top.gbr |
|
|
27 |
#cp V2.PHO ./PragoBoard/bot.gbr |
|
|
28 |
#cp M1.PHO ./PragoBoard/smt.gbr |
|
|
29 |
#cp M2.PHO ./PragoBoard/smb.gbr |
|
|
30 |
#cp T1.PHO ./PragoBoard/plt.gbr |
|
|
31 |
#cp BOARD.PHO ./PragoBoard/mill.gbr |
|
|
32 |
#cp DRILL.DRL ./PragoBoard/pth.exc |
|
|
33 |
#cp nDRILL.DRL ./PragoBoard/npth.exc #non plated holes |
|
|
34 |
|
|
|
35 |
# sources generated by KiCAD software |
|
|
36 |
|
4403 |
jacho |
37 |
cp $2-F.Cu.gbr ./PragoBoard/top.gbr |
|
|
38 |
cp $2-B.Cu.gbr ./PragoBoard/bot.gbr |
|
|
39 |
cp $2-F.Mask.gbr ./PragoBoard/smt.gbr |
|
|
40 |
cp $2-B.Mask.gbr ./PragoBoard/smb.gbr |
|
|
41 |
cp $2-F.SilkS.gbr ./PragoBoard/plt.gbr |
|
|
42 |
cp $2-Edge.Cuts.gbr ./PragoBoard/mill.gbr |
3581 |
kaklik |
43 |
cp $2.drl ./PragoBoard/pth.exc |
|
|
44 |
cp $2-NPTH.drl ./PragoBoard/npth.exc #non plated holes |
|
|
45 |
|
|
|
46 |
|
4403 |
jacho |
47 |
#cp $2-F_Cu.gbr ./PragoBoard/top.gbr |
|
|
48 |
#cp $2-B_Cu.gbr ./PragoBoard/bot.gbr |
|
|
49 |
#cp $2-F_Mask.gbr ./PragoBoard/smt.gbr |
|
|
50 |
#cp $2-B_Mask.gbr ./PragoBoard/smb.gbr |
|
|
51 |
#cp $2-F_SilkS.gbr ./PragoBoard/plt.gbr |
|
|
52 |
#cp $2-Edge_Cuts.gbr ./PragoBoard/mill.gbr |
|
|
53 |
#cp $2.drl ./PragoBoard/pth.exc |
|
|
54 |
#cp $2-NPTH.drl ./PragoBoard/npth.exc #non plated holes |
|
|
55 |
|