Genesis 自动层备份脚本 共享
时间:10-02
整理:3721RD
点击:
#!/bin/csh
source $GENESIS_DIR/sys/scripts/common.csh
gui_out WIN 200 200
gui_out BG 588590
gui_out FONT hbi24
gui_out LABEL SORT COMMAND
gui_out BG 154226
gui_out FG 000000
gui_out FONT hbr18
gui_out LABEL LAYER NAME must reference below:
gui_out FONT hbr24
gui_out BG 588590
gui_out FG 190099
gui_out LABEL cs cm l1-comp l2-xxx l4-sold\&lx-sold
gui_out LABEL sm ss \(Note:x can be acted for\)
#gui_out FORM
gui_out FONT hbr18
gui_out BG 588590
gui_out FG 000000
gui_out RADIO _exit Exit\? H 1 990000
gui_out No
gui_out Yes
gui_out END
gui_out ENDFORM
gui_out BW 1
gui_out FONT hbr20
gui_out BG 588590
gui_out CLABEL Continue
gui_out END
dogui
if ( $_exit != 1 ) exit
endif
DO_INFO -t matrix -e $JOB/matrix
set laynumber = ` echo $JOB | cut -c4 `
#COM matrix_auto_rows,job=$JOB,matrix=matrix
COM create_layer,layer=soutdrl,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=outdrl,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tn-1,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tn-2,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tenting,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=table,context=misc,type=signal,polarity=positive,ins_layer=
if ( $laynumber == 4 || $laynumber == 6 || $laynumber == 8 || $laynumber == a || $laynumber == b || $laynumber == c ) then
COM create_layer,layer=dr0,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=dr1,context=misc,type=signal,polarity=positive,ins_layer=
endif
if ( $laynumber == 6 || $laynumber == 8 || $laynumber == a || $laynumber == b || $laynumber == c ) then
COM create_layer,layer=dl1,context=misc,type=signal,polarity=positive,ins_layer=
endif
DO_INFO -t matrix -e $JOB/matrix
@ CT = 1
@ layer_num = 0
@ board = 0
@ misc = 0
foreach LAYER ( $gROWname )
if ( $gROWcontext[$CT] == "board" ) then
if ( $laynumber == a || $laynumber == b || $laynumber == c ) then
set layo = ` echo $LAYER | cut -c1-3 `
COM copy_layer,source_job=$JOB,source_step=org,source_layer=$LAYER, \
dest=layer_name,dest_layer=$layo.bak,mode=replace,invert=no
else
set layo = ` echo $LAYER | cut -c1-2 `
COM copy_layer,source_job=$JOB,source_step=org,source_layer=$LAYER, \
dest=layer_name,dest_layer=$layo.bak,mode=replace,invert=no
endif
@ board ++
endif
@ CT ++
end
echo $board
exit
source $GENESIS_DIR/sys/scripts/common.csh
gui_out WIN 200 200
gui_out BG 588590
gui_out FONT hbi24
gui_out LABEL SORT COMMAND
gui_out BG 154226
gui_out FG 000000
gui_out FONT hbr18
gui_out LABEL LAYER NAME must reference below:
gui_out FONT hbr24
gui_out BG 588590
gui_out FG 190099
gui_out LABEL cs cm l1-comp l2-xxx l4-sold\&lx-sold
gui_out LABEL sm ss \(Note:x can be acted for\)
#gui_out FORM
gui_out FONT hbr18
gui_out BG 588590
gui_out FG 000000
gui_out RADIO _exit Exit\? H 1 990000
gui_out No
gui_out Yes
gui_out END
gui_out ENDFORM
gui_out BW 1
gui_out FONT hbr20
gui_out BG 588590
gui_out CLABEL Continue
gui_out END
dogui
if ( $_exit != 1 ) exit
endif
DO_INFO -t matrix -e $JOB/matrix
set laynumber = ` echo $JOB | cut -c4 `
#COM matrix_auto_rows,job=$JOB,matrix=matrix
COM create_layer,layer=soutdrl,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=outdrl,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tn-1,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tn-2,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=tenting,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=table,context=misc,type=signal,polarity=positive,ins_layer=
if ( $laynumber == 4 || $laynumber == 6 || $laynumber == 8 || $laynumber == a || $laynumber == b || $laynumber == c ) then
COM create_layer,layer=dr0,context=misc,type=signal,polarity=positive,ins_layer=
COM create_layer,layer=dr1,context=misc,type=signal,polarity=positive,ins_layer=
endif
if ( $laynumber == 6 || $laynumber == 8 || $laynumber == a || $laynumber == b || $laynumber == c ) then
COM create_layer,layer=dl1,context=misc,type=signal,polarity=positive,ins_layer=
endif
DO_INFO -t matrix -e $JOB/matrix
@ CT = 1
@ layer_num = 0
@ board = 0
@ misc = 0
foreach LAYER ( $gROWname )
if ( $gROWcontext[$CT] == "board" ) then
if ( $laynumber == a || $laynumber == b || $laynumber == c ) then
set layo = ` echo $LAYER | cut -c1-3 `
COM copy_layer,source_job=$JOB,source_step=org,source_layer=$LAYER, \
dest=layer_name,dest_layer=$layo.bak,mode=replace,invert=no
else
set layo = ` echo $LAYER | cut -c1-2 `
COM copy_layer,source_job=$JOB,source_step=org,source_layer=$LAYER, \
dest=layer_name,dest_layer=$layo.bak,mode=replace,invert=no
endif
@ board ++
endif
@ CT ++
end
echo $board
exit
HGKJKGHJKGHJKGHJK
不错。
不错。
电风扇地方根深蒂固
怎么用啊,999