summaryrefslogtreecommitdiffstats
path: root/source/l/shared-mime-info/fetch-shared-mime-info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/shared-mime-info/fetch-shared-mime-info.sh')
-rwxr-xr-xsource/l/shared-mime-info/fetch-shared-mime-info.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/l/shared-mime-info/fetch-shared-mime-info.sh b/source/l/shared-mime-info/fetch-shared-mime-info.sh
index 3991e39f4..871d0c9f9 100755
--- a/source/l/shared-mime-info/fetch-shared-mime-info.sh
+++ b/source/l/shared-mime-info/fetch-shared-mime-info.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2019, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ rm -rf shared-mime-info
# Clone repository:
git clone https://gitlab.freedesktop.org/xdg/shared-mime-info.git
-VERSION=$(cd shared-mime-info && grep "^AC_INIT(\[shared-mime-info" configure.ac | cut -f 2 -d , | tr -d [ | tr -d ])
+VERSION=$(cd shared-mime-info && grep -w 'version:' meson.build | head -n 1 | cut -f 2 -d \')
# Cleanup. We're not packing up the whole git repo.
( cd shared-mime-info && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null )