#474 changed script

This commit is contained in:
Carmelo Messina
2024-03-09 12:06:09 +01:00
parent aeb7dce1db
commit e84f1330b4
2 changed files with 27 additions and 12 deletions
+11
View File
@@ -1,3 +1,5 @@
# see https://github.com/uazo/cromite/issues/474#issue-1964976443
*.idl;chrome/common/extensions
*.idl;extensions/common/api
*.idl;third_party/blink/renderer/modules
@@ -6,15 +8,24 @@
third_party/blink/renderer/core/frame/settings.json5
third_party/blink/renderer/core/events/event_type_names.json5
third_party/blink/renderer/core/css/parser/media_query_parser.cc
third_party/blink/renderer/core/css/media_feature_names.json5
third_party/blink/renderer/core/origin_trials/origin_trial_context.cc
third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom
chrome/android/java/AndroidManifest.xml
chrome/browser/ui/tab_helpers.cc
chrome/browser/chrome_browser_interface_binders.cc
chrome/browser/prefs/browser_prefs.cc
chrome/renderer/chrome_content_renderer_client.cc
content/child/runtime_features.cc
content/public/browser/content_browser_client.cc
services/network/network_context.cc
gin/v8_initializer.cc
media/base/video_codecs.h
+16 -12
View File
@@ -1,16 +1,21 @@
#!/bin/bash
FILE_LIST=~/cromite/tools/under-control/file_list.txt
OUTPUT_DIR=~/cromite/tools/under-control/
OUTPUT_DIR=~/cromite/tools/under-control/src/
cd ~/chromium/src
if [ -z "$CHR_SOURCE_DIR" ]; then
echo "CHR_SOURCE_DIR is empty"
exit 1
fi
for current_file in $(cat $FILE_LIST); do
pushd $CHR_SOURCE_DIR > /dev/null
if [ ! -z "$current_file" ]
then
cat $FILE_LIST | while read current_file
do
if [[ $current_file =~ ^#.* ]]; then
: # skip comments
#echo $current_file
elif [ ! -z "$current_file" ]; then
SPLITS=(${current_file//;/ })
DIR_NAME=${SPLITS[1]}
@@ -18,19 +23,18 @@ for current_file in $(cat $FILE_LIST); do
then
echo Copy ${SPLITS[0]} of $DIR_NAME
#find $DIR_NAME -name ${SPLITS[0]} -exec install -D '{}' $OUTPUT_DIR{} \;
find $DIR_NAME -name ${SPLITS[0]} \
-exec grep -q '^CHECKED_VERSION=' $OUTPUT_DIR{} \; \
-exec sed 's/^CHECKED_VERSION=.*/CHECKED_VERSION=newvalue/' -i $OUTPUT_DIR{} \;
find $DIR_NAME -name ${SPLITS[0]} -exec install -D '{}' $OUTPUT_DIR{} \;
else
echo Copy $current_file
#install -D $current_file $OUTPUT_DIR/$current_file
install -D $current_file $OUTPUT_DIR/$current_file
fi
fi
done
cp ~/cromite/build/RELEASE $OUTPUT_DIR
popd > /dev/null