Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/python/mozbuild/mozbuild/vendor/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_vendor_changes.sh   Sprache: Shell

 
#!/bin/bash

if [[ ! -f "CLOBBER" ]]; then
 echo "Script should be run from mozilla-central root"
 exit 1
fi

echo "THIS SCRIPT WILL REVERT AND PURGE UNCOMMIT LOCAL CHANGES"
echo "TYPE ok TO CONTINUE"
read CONFIRMATION
if [[ $CONFIRMATION != "ok" ]]; then
 echo "Did not get 'ok', exiting"
 exit 0
fi

ALL_MOZ_YAML_FILES=$(find . -name moz.yaml)

for f in $ALL_MOZ_YAML_FILES; do
 IFS='' read -r -d '' INPUT <<"EOF"
import sys
import yaml
enabled = False
with open(sys.argv[1]) as yaml_in:
 o = yaml.safe_load(yaml_in)
 if "updatebot" in o:
  if 'tasks' in o["updatebot"]:
   for t in o["updatebot"]["tasks"]:
    if t["type"] == "vendoring":
     if t.get("enabled", True) and t.get("platform""Linux").lower() == "linux":
      enabled = True
if enabled:
 print(sys.argv[1])
EOF

 FILE=$(python3 -c "$INPUT" $f)
 
 if [[ ! -z $FILE ]]; then
  UPDATEBOT_YAML_FILES+=("$FILE")
 fi
done


for FILE in "${UPDATEBOT_YAML_FILES[@]}"do
 REVISION=$(yq eval ".origin.revision" $FILE)
 HAS_PATCHES=$(yq eval ".vendoring.patches | (. != null)" $FILE)
 
 echo "$FILE - $REVISION"
 if [[ $HAS_PATCHES == "false" ]]; then
  ./mach vendor $FILE --force --revision $REVISION
  if [[ $? == 1 ]]; then
   exit 1
  fi
 else
  ./mach vendor $FILE --force --revision $REVISION --patch-mode=none
  if [[ $? == 1 ]]; then
   exit 1
  fi
  ./mach vendor $FILE --force --revision $REVISION --patch-mode=only --ignore-modified
  if [[ $? == 1 ]]; then
   exit 1
  fi
 fi
 hg revert .
 hg purge
done

Messung V0.5
C=95 H=92 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.