Browse Source

Handle '#' comments correctly and allow this script to run standalone

[ci skip]
master
probonopd 5 years ago
committed by GitHub
parent
commit
992d7afbfe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      tools/generate-excludelist.sh

12
tools/generate-excludelist.sh

@ -2,17 +2,21 @@
set -e
# download excludelist
blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | sort | uniq | grep -v "^#.*" | grep "[^-\s]"))
# Download excludelist
blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | sort | uniq | cut -d '#' -f 1 | grep -v "^#.*" | grep "[^-\s]"))
# sanity check
# Sanity check
if [ "$blacklisted" == "" ]; then
exit 1;
fi
# If the linuxdeployqt source is not available locally, generate the file anyway
filename=$(readlink -f $(dirname "$0"))/linuxdeployqt/excludelist.h
if [ ! -e "$filename" ] ; then
filename=$(readlink -f $(dirname "$0"))/linuxdeployqt/excludelist.h
fi
# overwrite existing source file
# Overwrite existing source file
cat > "$filename" <<EOF
/*
* List of libraries to exclude for different reasons.

Loading…
Cancel
Save