#!/usr/bin/env bash # Superseded by the automated upstream sync: # scripts/sync-upstream.sh + .github/workflows/sync-upstream.yml # This helper now only downloads the latest upstream files for a manual # review/diff. The quickemu project keeps quickget etc. inside the quickemu # repository, so everything is fetched from the same repo and branch. set -euo pipefail UPSTREAM_REPO="https://raw.githubusercontent.com/quickemu-project/quickemu/master" SCRIPT_DIR="$(dirname "$(realpath "$0")")" REPO_ROOT="$(dirname "${SCRIPT_DIR}")" for file in quickemu quickget chunkcheck quickreport; do echo "Fetching upstream ${file}..." curl -fsSL "${UPSTREAM_REPO}/${file}" -o "${REPO_ROOT}/${file}.upstream" done echo "" echo "Upstream files saved as:" echo " quickemu.upstream quickget.upstream chunkcheck.upstream quickreport.upstream" echo "" echo "Review changes with:" for file in quickemu quickget chunkcheck quickreport; do echo " diff ${file}.upstream ${file}" done echo "" echo "To apply them automatically, run scripts/sync-upstream.sh or trigger the" echo "Sync upstream quickemu workflow; conflicts are then opened as a PR."