We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3187575 + f15ab32 commit 7fa6e2aCopy full SHA for 7fa6e2a
ext/fileinfo/generate_patch.sh
@@ -4,4 +4,5 @@ if [[ ! -d libmagic.orig ]]; then
4
wget -O - ftp://ftp.astron.com/pub/file/file-$VERSION.tar.gz \
5
| tar -xz --strip-components=2 -C libmagic.orig file-$VERSION/src
6
fi
7
+sed -e "s/X\.YY/${VERSION//.}/g" libmagic.orig/magic.h.in > libmagic.orig/magic.h
8
diff -u libmagic.orig libmagic | grep -v '^Only in' > libmagic.patch
0 commit comments