replace-preamble.sh 263 B

12345
  1. #!/usr/bin/zsh
  2. # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
  3. perl -i -p0e "s{\Q$(cat PREAMBLE.py.old)\E}{$(cat devscripts/PREAMBLE.py)}g" dulwich/**/*.py bin/dul*
  4. perl -i -p0e "s{\Q$(cat PREAMBLE.c.old)\E}{$(cat devscripts/PREAMBLE.c)}g" dulwich/*.c