File: fileversion.script

package info (click to toggle)
pcb 1%3A4.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 29,760 kB
  • sloc: ansic: 138,451; sh: 8,447; yacc: 5,135; pascal: 4,820; makefile: 2,039; perl: 580; lex: 439; awk: 116; lisp: 86; tcl: 63; xml: 20
file content (25 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# fileversion.script
#
# Purpose: ensure that pcb saves files with the right "version". 
#
# pcb calculates the oldest file version that can contain a particular
# layout based on the features used in that layout. It then saves this
# information in the file header so that an older version of pcb will
# realize that it cannot load features contained in a file.
#
# This script loads and saves pcb that have different sets of features. I
# think ideally this script would actually create those features instead of
# loading files that have them, but this is what we have for now.
#

LoadFrom(Layout, fileversion-20091103.pcb)
SaveTo(LayoutAs, fileversion-20091103-out.pcb)

LoadFrom(Layout, fileversion-20100606.pcb)
SaveTo(LayoutAs, fileversion-20100606-out.pcb)

LoadFrom(Layout, fileversion-20170218.pcb)
SaveTo(LayoutAs, fileversion-20170218-out.pcb)

Quit()