File: unannotate.sh

package info (click to toggle)
geda-gnetlist 20061020-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,184 kB
  • ctags: 710
  • sloc: lisp: 5,513; ansic: 4,045; sh: 3,736; makefile: 309
file content (13 lines) | stat: -rwxr-xr-x 243 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -z $1 ]; then
	echo "No sch file indicated"
	echo "usage:"
	echo "annotate file"
	echo "	file is generated by gschem"
	exit 1
fi 

cat $1 | sed "/refdes=\([A-Za-z][A-Za-z]*\)[0-9][0-9]*/s//refdes=\1?/g" > $1.tmp
#mv $1.tmp $1