mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 22:46:15 +02:00
Allow setting of _schhist2web, to allow for parallel runs.
- schhist/schhist2web: cache="$2" doesn't need quoting - schhist/schhist2web: "tmp" remains constant throughout the run, so assign it at the beginning - schhist/schhist2web: option -T tmp-dir to set "tmp" to a user-defined location
This commit is contained in:
parent
f68e5a58b6
commit
479fff14c9
@ -120,6 +120,7 @@ usage: $0 [options] [top-dir] [top-schem] [out-dir]
|
|||||||
-n don't use previous cache content (rebuild the cache)
|
-n don't use previous cache content (rebuild the cache)
|
||||||
-D debug mode: make temporary work trees unique and keep them
|
-D debug mode: make temporary work trees unique and keep them
|
||||||
-S sanitize KiCad profile and top-level sheet
|
-S sanitize KiCad profile and top-level sheet
|
||||||
|
-T tmp-dir use the specified temporary directory instead of _schhist
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -133,13 +134,14 @@ sanitize=
|
|||||||
use_sch_name=false
|
use_sch_name=false
|
||||||
debug=false
|
debug=false
|
||||||
debug_opt=
|
debug_opt=
|
||||||
|
tmp=`pwd`/_schhist2web
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-n) no_cache=true
|
-n) no_cache=true
|
||||||
shift;;
|
shift;;
|
||||||
-c) [ -z "$2" ] && usage
|
-c) [ -z "$2" ] && usage
|
||||||
cache="$2"
|
cache=$2
|
||||||
shift 2;;
|
shift 2;;
|
||||||
-f) use_sch_name=true
|
-f) use_sch_name=true
|
||||||
shift;;
|
shift;;
|
||||||
@ -148,6 +150,9 @@ while true; do
|
|||||||
shift;;
|
shift;;
|
||||||
-S) sanitize=-S
|
-S) sanitize=-S
|
||||||
shift;;
|
shift;;
|
||||||
|
-T) [ -z "$2" ] && usage
|
||||||
|
tmp=$2
|
||||||
|
shift 2;;
|
||||||
-*) usage;;
|
-*) usage;;
|
||||||
*) break;;
|
*) break;;
|
||||||
esac
|
esac
|
||||||
@ -231,7 +236,6 @@ for n in $first `cd "$dir" && git rev-list --reverse $first..HEAD`; do
|
|||||||
echo Name change $schname to $new 1>&2
|
echo Name change $schname to $new 1>&2
|
||||||
schname="$new"
|
schname="$new"
|
||||||
fi
|
fi
|
||||||
tmp=`pwd`/_schhist2web
|
|
||||||
trap "rm -rf \"$cache/$n/ps\" \"$cache/$n/ppm0\" \"$cache/$n/ppm1\" \
|
trap "rm -rf \"$cache/$n/ps\" \"$cache/$n/ppm0\" \"$cache/$n/ppm1\" \
|
||||||
\"$cache/$n/ppm2\" \"$tmp\"" 0
|
\"$cache/$n/ppm2\" \"$tmp\"" 0
|
||||||
if [ ! -d "$cache/$n/ppm2" ]; then
|
if [ ! -d "$cache/$n/ppm2" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user