summaryrefslogtreecommitdiff
path: root/scripts/vendor
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-07-17 17:36:36 +0200
committerAnand Thakker <github@anandthakker.net>2018-07-20 10:58:50 -0400
commit6d7072162b764c2432c010cd463a5a2c0093d606 (patch)
tree70710d98a0fd7048f473207c9ef16c75f4ad8d52 /scripts/vendor
parent1985b893b7c50f56e10ecc07776d60103a5a3e5b (diff)
downloadqtlocation-mapboxgl-6d7072162b764c2432c010cd463a5a2c0093d606.tar.gz
[build] add nitpick step for verifying that dependencies are up-to-date and unmodifiedupstream/vendor-gtest
Diffstat (limited to 'scripts/vendor')
-rwxr-xr-xscripts/vendor/common.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vendor/common.sh b/scripts/vendor/common.sh
index 3679152218..680211bfcc 100755
--- a/scripts/vendor/common.sh
+++ b/scripts/vendor/common.sh
@@ -23,9 +23,10 @@ function init {
function extract {
echo ">> Unpacking files from $VENDOR/.cache/$NAME-$VERSION.tar.gz..."
- tar xzf "$VENDOR/.cache/$NAME-$VERSION.tar.gz" --strip-components=${STRIP_COMPONENTS:-1} -C "$VENDOR/$NAME" $@
+ [ ! -z "$(tar --version | grep "GNU tar")" ] && WC="--wildcards" || WC=""
+ tar xzf "$VENDOR/.cache/$NAME-$VERSION.tar.gz" $WC --strip-components=${STRIP_COMPONENTS:-1} -C "$VENDOR/$NAME" $@
}
function file_list {
- (cd "$VENDOR/$NAME" && find $@ | sort > "$VENDOR/$NAME/files.txt")
+ (cd "$VENDOR/$NAME" && find $@ | LC_ALL=C sort > "$VENDOR/$NAME/files.txt")
}