r5174 - in trunk/gta02-core: . expanded scripts
werner at docs.openmoko.org
werner at docs.openmoko.org
Sun Jun 21 20:02:27 CEST 2009
Author: werner
Date: 2009-06-21 20:02:27 +0200 (Sun, 21 Jun 2009)
New Revision: 5174
Added:
trunk/gta02-core/scripts/all-sheets
Removed:
trunk/gta02-core/scripts/all-sheets-ps
Modified:
trunk/gta02-core/Makefile
trunk/gta02-core/expanded/Makefile
Log:
Renamed all-sheets-ps to all-sheets
Modified: trunk/gta02-core/Makefile
===================================================================
--- trunk/gta02-core/Makefile 2009-06-21 18:01:37 UTC (rev 5173)
+++ trunk/gta02-core/Makefile 2009-06-21 18:02:27 UTC (rev 5174)
@@ -8,9 +8,9 @@
eeschema --plot `pwd`/gta02-core.sch
# For A3, remove the --shrink and prepend
# GS_OPTIONS=-sPAPERSIZE=a3
- scripts/all-sheets-ps --shrink gta02-core
+ scripts/all-sheets --shrink gta02-core
gzip -f -9 gta02-core-all.ps
- scripts/all-sheets-ps --shrink --pdf gta02-core
+ scripts/all-sheets --shrink --pdf gta02-core
upload: generate
scp gta02-core-all.ps.gz gta02-core-all.pdf \
Modified: trunk/gta02-core/expanded/Makefile
===================================================================
--- trunk/gta02-core/expanded/Makefile 2009-06-21 18:01:37 UTC (rev 5173)
+++ trunk/gta02-core/expanded/Makefile 2009-06-21 18:02:27 UTC (rev 5174)
@@ -5,9 +5,9 @@
../scripts/expand-pintype ../components/gta02-core.lib \
../components/gta02-core-expanded.lib
eeschema --plot `pwd`/gta02-core-expanded.sch
- ../scripts/all-sheets-ps gta02-core-expanded
+ ../scripts/all-sheets gta02-core-expanded
gzip -f -9 gta02-core-expanded-all.ps
- ../scripts/all-sheets-ps --pdf gta02-core-expanded
+ ../scripts/all-sheets --pdf gta02-core-expanded
upload: generate
scp gta02-core-expanded-all.ps.gz gta02-core-expanded-all.pdf \
Copied: trunk/gta02-core/scripts/all-sheets (from rev 5173, trunk/gta02-core/scripts/all-sheets-ps)
===================================================================
--- trunk/gta02-core/scripts/all-sheets (rev 0)
+++ trunk/gta02-core/scripts/all-sheets 2009-06-21 18:02:27 UTC (rev 5174)
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+ps=true
+pdf=false
+shrink=false
+cmd=cat
+
+while [ "${1#-}" != "$1" ]; do
+ case "$1" in
+ --pdf)
+ ps=false
+ pdf=true;;
+ --shrink)
+ cmd="psresize -Pa3 -pa4"
+ shrink=true;;
+ esac
+ shift
+done
+
+B=${1:-gta02-core}
+
+OUT=$B-all
+SHEETS="$B $B-CPU $B-CPU-POWER $B-PMU $B-MEMORY"
+SHEETS="$SHEETS $B-AUDIO $B-USB $B-IO $B-LCM $B-SD-SIM"
+SHEETS="$SHEETS $B-GPS $B-BT $B-WLAN"
+
+if $ps; then
+ {
+ sed 1q $B.ps
+ sed '/^%%Orientation: /q;d' $B.ps
+ $shrink || sed '/^%%DocumentMedia: /q;d' $B.ps
+ eval psmerge `for n in $SHEETS; do [ -f $n.ps ] && \
+ echo "<($cmd $n.ps)"; done` | sed 1d
+ } >$OUT.ps
+fi
+
+if $pdf; then
+ eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$OUT.pdf -f \
+ `for n in $SHEETS; do [ -f $n.ps ] && echo "<($cmd $n.ps)"; done`
+fi
Property changes on: trunk/gta02-core/scripts/all-sheets
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mergeinfo
+
Deleted: trunk/gta02-core/scripts/all-sheets-ps
===================================================================
--- trunk/gta02-core/scripts/all-sheets-ps 2009-06-21 18:01:37 UTC (rev 5173)
+++ trunk/gta02-core/scripts/all-sheets-ps 2009-06-21 18:02:27 UTC (rev 5174)
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-ps=true
-pdf=false
-shrink=false
-cmd=cat
-
-while [ "${1#-}" != "$1" ]; do
- case "$1" in
- --pdf)
- ps=false
- pdf=true;;
- --shrink)
- cmd="psresize -Pa3 -pa4"
- shrink=true;;
- esac
- shift
-done
-
-B=${1:-gta02-core}
-
-OUT=$B-all
-SHEETS="$B $B-CPU $B-CPU-POWER $B-PMU $B-MEMORY"
-SHEETS="$SHEETS $B-AUDIO $B-USB $B-IO $B-LCM $B-SD-SIM"
-SHEETS="$SHEETS $B-GPS $B-BT $B-WLAN"
-
-if $ps; then
- {
- sed 1q $B.ps
- sed '/^%%Orientation: /q;d' $B.ps
- $shrink || sed '/^%%DocumentMedia: /q;d' $B.ps
- eval psmerge `for n in $SHEETS; do [ -f $n.ps ] && \
- echo "<($cmd $n.ps)"; done` | sed 1d
- } >$OUT.ps
-fi
-
-if $pdf; then
- eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$OUT.pdf -f \
- `for n in $SHEETS; do [ -f $n.ps ] && echo "<($cmd $n.ps)"; done`
-fi
More information about the commitlog
mailing list