should be it
This commit is contained in:
22
external/duckdb/extension/icu/scripts/inline-data.py
vendored
Normal file
22
external/duckdb/extension/icu/scripts/inline-data.py
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import sys
|
||||
|
||||
contents = bytearray(sys.stdin.buffer.read())
|
||||
|
||||
# encode the data into the stubdata file
|
||||
result_text = ",".join(map(str, contents))
|
||||
|
||||
new_contents = """
|
||||
// This file is generated by scripts/inline-data.py, do not edit it manually //
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/udata.h"
|
||||
#include "unicode/uversion.h"
|
||||
|
||||
extern "C" U_EXPORT const unsigned char U_ICUDATA_ENTRY_POINT [] = {
|
||||
%s
|
||||
};
|
||||
""" % (
|
||||
result_text,
|
||||
)
|
||||
|
||||
sys.stdout.write(new_contents)
|
||||
Reference in New Issue
Block a user