summaryrefslogtreecommitdiffstats
path: root/intl/icu/source/data/unidata/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu/source/data/unidata/clean.sh')
-rwxr-xr-xintl/icu/source/data/unidata/clean.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/intl/icu/source/data/unidata/clean.sh b/intl/icu/source/data/unidata/clean.sh
new file mode 100755
index 0000000000..b3baffeb51
--- /dev/null
+++ b/intl/icu/source/data/unidata/clean.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# © 2021 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html
+
+# This script deletes files that generate.sh tries to regenerate.
+
+# Required environment variables:
+# - ICU_SRC - the root directory of ICU source. This directory contains the
+# `icu4c` directory.
+
+# We cannot just delete *_data.h because ucol_data.h is not a generated header file.
+rm $ICU_SRC/icu4c/source/common/norm2_nfc_data.h
+rm $ICU_SRC/icu4c/source/common/propname_data.h
+rm $ICU_SRC/icu4c/source/common/*_props_data.h
+rm $ICU_SRC/icu4c/source/data/in/*.icu
+rm $ICU_SRC/icu4c/source/data/in/*.nrm
+rm $ICU_SRC/icu4c/source/data/in/coll/*.icu
+# icu4c/source/i18n/collationfcd.cpp is generated by genuca;
+# probably hard to build genuca without depending on the old version.