summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-03-02 10:43:34 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2022-03-02 17:58:07 +0100
commit03b930470365bd32f93d761bc823d456e8de6853 (patch)
tree83a8efec1fbcc58aa9335fcf32c601da164a2bc8 /src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh
parentea3a7aaf2bf0e0e067423a7e19c457a4f26516cc (diff)
Update bundled libjpeg-turbo to version 2.1.3
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 2.1.3 Pick-to: 6.3 6.2 5.15 Change-Id: I69ebd10641b07af324f6ae056cddb65cc0b5ce82 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh')
-rwxr-xr-xsrc/3rdparty/libjpeg/import_from_libjpeg_tarball.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh b/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh
index 2153eca35a..4184cc2769 100755
--- a/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh
+++ b/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh
@@ -158,11 +158,22 @@ FILES="
jsimddct.h
jstdhuff.c
jutils.c
- jversion.h
"
for i in $FILES; do
copy_file "$i" "src/$i"
done
+copy_file "jversion.h.in" "src/jversion.h"
+
+cyear=$(grep COPYRIGHT_YEAR $LIBJPEG_DIR/CMakeLists.txt | sed -e 's/.*"\(.*\)".*/\1/')
+sed -i -e "s/@COPYRIGHT_YEAR@/$cyear/" $TARGET_DIR/src/jversion.h
+
+sed -n -e 's/^[ ]*"//
+ s/\(\\n\)*"[ ]*\\*$//
+ /JCOPYRIGHT\ /,/^[ ]*$/ {
+ /Copyright/p
+ }
+ ' $TARGET_DIR/src/jversion.h > $TARGET_DIR/COPYRIGHT.txt
+
echo Done. $TARGET_DIR/src/jconfig.h and jconfigint.h may need manual updating.