| Line 1... |
Line 1... |
| 1 |
#!/bin/bash |
1 |
#!/bin/bash |
| 2 |
|
2 |
|
| 3 |
## This script generate alternavive data names (Required by some PCB manufacturers such as Pragoboard.cz) |
3 |
## This script generate alternative data names (Required by some PCB manufacturers such as Pragoboard.cz) |
| 4 |
## |
4 |
## |
| 5 |
## Usage: |
5 |
## Usage: |
| 6 |
## |
6 |
## |
| 7 |
## Run this script with prarameter of directory in which Gerber data is located. |
7 |
## Run this script with parameter of directory in which Gerber data is located. |
| 8 |
## |
8 |
## |
| 9 |
## Example: |
9 |
## Example: |
| 10 |
## |
10 |
## |
| 11 |
## ./gen_PragoBoard.sh /home/kaklik/svnMLAB/Modules/CommRF/GSM01A/CAM_PROFI/ |
11 |
## ./gen_PragoBoard.sh /home/kaklik/svnMLAB/Modules/CommRF/GSM01A/CAM_PROFI/ GSM01A |
| 12 |
## |
12 |
## |
| 13 |
## This comand generates new directory PragoBoard with these files: |
13 |
## This command generates new directory PragoBoard with these files: |
| 14 |
## bot.gbr mill.gbr plt.gbr pth.exc smb.gbr smt.gbr top.gbr |
14 |
## bot.gbr mill.gbr plt.gbr pth.exc smb.gbr smt.gbr top.gbr |
| 15 |
## |
15 |
## |
| 16 |
## |
16 |
## |
| 17 |
## TODO: non plated drill is not properly handled. |
17 |
## TODO: non plated drill is not properly handled. |
| 18 |
## |
18 |
## |
| Line 32... |
Line 32... |
| 32 |
#cp DRILL.DRL ./PragoBoard/pth.exc |
32 |
#cp DRILL.DRL ./PragoBoard/pth.exc |
| 33 |
#cp nDRILL.DRL ./PragoBoard/npth.exc #non plated holes |
33 |
#cp nDRILL.DRL ./PragoBoard/npth.exc #non plated holes |
| 34 |
|
34 |
|
| 35 |
# sources generated by KiCAD software |
35 |
# sources generated by KiCAD software |
| 36 |
|
36 |
|
| 37 |
cp $2-F_Cu.gtl ./PragoBoard/top.gbr |
37 |
cp $2-F_Cu.gbr ./PragoBoard/top.gbr |
| 38 |
cp $2-B_Cu.gbl ./PragoBoard/bot.gbr |
38 |
cp $2-B_Cu.gbr ./PragoBoard/bot.gbr |
| 39 |
cp $2-F_Mask.gts ./PragoBoard/smt.gbr |
39 |
cp $2-F_Mask.gbr ./PragoBoard/smt.gbr |
| 40 |
cp $2-B_Mask.gbs ./PragoBoard/smb.gbr |
40 |
cp $2-B_Mask.gbr ./PragoBoard/smb.gbr |
| 41 |
cp $2-F_SilkS.gto ./PragoBoard/plt.gbr |
41 |
cp $2-F_SilkS.gbr ./PragoBoard/plt.gbr |
| 42 |
cp $2-Edge_Cuts.gbr ./PragoBoard/mill.gbr |
42 |
cp $2-Edge_Cuts.gbr ./PragoBoard/mill.gbr |
| 43 |
cp $2.drl ./PragoBoard/pth.exc |
43 |
cp $2.drl ./PragoBoard/pth.exc |
| 44 |
cp $2-NPTH.drl ./PragoBoard/npth.exc #non plated holes |
44 |
cp $2-NPTH.drl ./PragoBoard/npth.exc #non plated holes |
| 45 |
|
45 |
|
| 46 |
|
46 |
|