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:
@@ -89,12 +89,12 @@ else
|
||||
fi
|
||||
|
||||
if [ ! -z "$1" -a -f "$dir/$1" -a \
|
||||
-f "$dir"/`dirname "$1"`/`basename "$1" .sch`.pro ]; then
|
||||
-f "$dir/${1%.sch}.pro" ]; then
|
||||
sch="$1"
|
||||
shift
|
||||
else
|
||||
for n in "$dir"/*.sch; do
|
||||
[ -f `dirname "$n"`/`basename "$n" .sch`.pro ] || continue
|
||||
[ -f "${n%.sch}.pro" ] || continue
|
||||
if [ ! -z "$sch" ]; then
|
||||
echo "multiple choices for top-level .sch file" 1>&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user