mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
Sheet names now link to the sheet's PDF.
- scripts/normalizeschps: by default, don't change the linewidth - scripts/schhist2web: cache historical Postscript files in directories ps_* - scripts/schps2pdf: new script to convert eeschema Postscript to PDF - scripts/schhist2web: link the file name in the title to the curent PDF of the respective sheet - scripts/Makefile: changed lazy wildcard thum* to thumb_* and diff* to diff_* - scripts/Makefile: upload also pdf_*
This commit is contained in:
@@ -12,24 +12,22 @@
|
||||
#
|
||||
|
||||
|
||||
LINEWIDTH=120
|
||||
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<EOF 1>&2
|
||||
usage: $0 [options] [in.ps [out.ps]]
|
||||
|
||||
-w points Postscript line width (default: $LINEWIDTH)
|
||||
-w points Postscript line width (default: use the original)
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
width=
|
||||
while true; do
|
||||
case "$1" in
|
||||
-w) [ -z "$2" ] && usage
|
||||
LINEWIDTH="$2"
|
||||
width="$2"
|
||||
shift 2;;
|
||||
-*)
|
||||
usage;;
|
||||
@@ -45,8 +43,9 @@ out=${2:-/dev/stdout}
|
||||
sed '
|
||||
1c%!PS-Adobe-3.0\
|
||||
currentdict /DidNormalize known not { \
|
||||
/setlinewidth { '$LINEWIDTH' 2 copy lt { exch } if pop \
|
||||
setlinewidth } bind def \
|
||||
'"`[ -z \"$width\" ] ||
|
||||
echo \"/setlinewidth { $width 2 copy lt { exch } if pop \
|
||||
setlinewidth } bind def \"`"' \
|
||||
/rectfill { rectstroke } bind def \
|
||||
/DidNormalize true def \
|
||||
} if \
|
||||
|
||||
Reference in New Issue
Block a user