mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
This simplifies the libmagic patch: - in upstream the HAVE_STRERROR check has been removed - in upstream library the HAVE_SIGNAL_H has been removed - indentations syncs with the upstream library - some irrelevant changes removed from the patch (log comment), upstream has this correctly logged already so no need to patch the comment. Closes GH-4298
8 lines
276 B
Bash
Executable File
8 lines
276 B
Bash
Executable File
VERSION=5.37
|
|
if [[ ! -d libmagic.orig ]]; then
|
|
mkdir libmagic.orig
|
|
wget -O - ftp://ftp.astron.com/pub/file/file-$VERSION.tar.gz \
|
|
| tar -xz --strip-components=2 -C libmagic.orig file-$VERSION/src
|
|
fi
|
|
diff -u libmagic.orig libmagic | grep -v '^Only in' > libmagic.patch
|