mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
Minor code cleanup and robustness improvement.
- scripts/gitsch2ppm, scripts/schhist2web: replace awkward and cryptic
`dirname "$x"`/`basename "$x" .old`.new
construct with much more friendly "${x%.old}.new"
- scripts/gitenealogy: put -- before path names in git-log, to prevent
parsing ambiguities
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ EOF
|
||||
gs -sDEVICE=ppmraw -sOutputFile=- -g$IRES -r$res \
|
||||
-dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q - |
|
||||
pnmflip -r270 |
|
||||
cat >`dirname "$1"`/`basename "$1" .ps`.ppm
|
||||
cat >"${1%.ps}.ppm"
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ if ! $cache; then
|
||||
(
|
||||
cd "$sch" || exit
|
||||
rm -f *.ps *.ppm
|
||||
$sanitize "$tmp"/`dirname "$schem"`/`basename "$schem" .sch`.pro ||
|
||||
$sanitize "$tmp/${schem%.sch}.pro" ||
|
||||
exit
|
||||
eeschema --plot "$tmp/$schem"
|
||||
) || exit
|
||||
|
||||
Reference in New Issue
Block a user