mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 13:15:04 -06:00
- update of zstd-mt library - add brotli v0.6.0 - add lizard v2.0 - xxhash is from zstd for lz4, lz5 and lizard now - update also the documentation, where needed
37 lines
1003 B
Bash
37 lines
1003 B
Bash
#!/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
|