File: clonepatch

package info (click to toggle)
doclifter 2.21-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,888 kB
  • sloc: python: 10,117; xml: 2,384; sh: 274; makefile: 79; lisp: 37
file content (9 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Clone a patch (specified by NAME.SECTION) to any number of new copies
# specified likewise.  Useful for cases like XF86VM.3 and its clones.
base=$1
shift
for copy in $*;
do
    sed <prepatch/${base}.patch >prepatch/${copy}.patch 1,2s/${base}/${copy}/
done