Files
easy7zip/C/brotli/Brotli-Adjust.sh
Tino Reichardt c9b085e4ec Add some compiling fixes and choose compiler (vc12 + sdk71 for ia64)
- add some pragma definitions to brotli port.h
- change lz4 code, to include zstd/xxhash.h
- fix various objects in makefile's
- fix LzHandler.cpp, LZIP has now 0xC5 @ Guid.txt
- improve logging on AppVeyor
- fix version numbers in codecs
- rename "Codec_zstdF" to "Codec_zstd_legacy"
- add missing objects for lizard
2018-10-21 18:53:42 +02:00

46 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# C/brotli/*
# /TR 2017-05-25
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 644 {} \;
chmod +x $0
mv include/brotli/* .
rm -rf include
for i in */*.c *.h; do
sed -i 's|<brotli/port.h>|"port.h"|g' "$i"
sed -i 's|<brotli/types.h>|"types.h"|g' "$i"
sed -i 's|<brotli/encode.h>|"encode.h"|g' "$i"
sed -i 's|<brotli/decode.h>|"decode.h"|g' "$i"
done
for i in */*.h; do
sed -i 's|<brotli/port.h>|"../port.h"|g' "$i"
sed -i 's|<brotli/types.h>|"../types.h"|g' "$i"
sed -i 's|<brotli/encode.h>|"../encode.h"|g' "$i"
sed -i 's|<brotli/decode.h>|"../decode.h"|g' "$i"
done
cd common
sed -i 's|include "./|include "./common/|g' *.c
for f in *.c; do mv $f ../br_$f; done
cd ../dec
sed -i 's|include "./|include "./dec/|g' *.c
sed -i 's|include "../common|include "./common|g' *.c
for f in *.c; do mv $f ../br_$f; done
cd ../enc
sed -i 's|include "./|include "./enc/|g' *.c
sed -i 's|include "../common|include "./common/|g' *.c
for f in *.c; do mv $f ../br_$f; done
exit
# and also disable these msc warnings:
# pragma warning(disable : 4100)
# pragma warning(disable : 4127)
# pragma warning(disable : 4295)
# pragma warning(disable : 4389)
# pragma warning(disable : 4701)