Skip the Python checks if the Python files haven't changed.
This commit is contained in:
@@ -46,8 +46,18 @@ else
|
||||
echo "If a newer version of rustfmt is available, update this script."
|
||||
fi
|
||||
|
||||
# Check if any Python files have changed since we last checked them.
|
||||
tsfile=$topdir/target/meta-checked
|
||||
if [ -f $tsfile ]; then
|
||||
needcheck=$(find $topdir/lib/cretonne/meta -name '*.py' -newer $tsfile)
|
||||
else
|
||||
needcheck=yes
|
||||
fi
|
||||
if [ -n "$needcheck" ]; then
|
||||
banner $(python --version 2>&1)
|
||||
$topdir/lib/cretonne/meta/check.sh
|
||||
touch $tsfile
|
||||
fi
|
||||
|
||||
PKGS="cretonne cretonne-reader cretonne-tools filecheck"
|
||||
cd "$topdir"
|
||||
|
||||
Reference in New Issue
Block a user