mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
337031abbd
This has apparently been forgotten when updating to libmagic 5.39.
9 lines
358 B
Bash
Executable File
9 lines
358 B
Bash
Executable File
VERSION=5.39
|
|
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
|
|
sed -e "s/X\.YY/${VERSION//.}/g" libmagic.orig/magic.h.in > libmagic.orig/magic.h
|
|
diff -u libmagic.orig libmagic | grep -v '^Only in' > libmagic.patch
|