2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
$NetBSD: patch-jade_TransformFOTBuilder.cxx,v 1.1 2011/04/22 07:27:45 adam Exp $
|
|
|
|
Fix building with Clang.
|
|
|
|
--- a/jade/TransformFOTBuilder.cxx 2011-04-22 07:04:25.000000000 +0000
|
|
+++ b/jade/TransformFOTBuilder.cxx
|
|
@@ -248,12 +248,12 @@ FOTBuilder *makeTransformFOTBuilder(CmdL
|
|
const Vector<StringC> &options,
|
|
const FOTBuilder::Extension *&ext)
|
|
{
|
|
- static const TransformFOTBuilder::ProcessingInstructionFlowObj pi;
|
|
- static const TransformFOTBuilder::ElementFlowObj element;
|
|
- static const TransformFOTBuilder::EmptyElementFlowObj emptyElement;
|
|
- static const TransformFOTBuilder::EntityFlowObj entity;
|
|
- static const TransformFOTBuilder::EntityRefFlowObj entityRef;
|
|
- static const TransformFOTBuilder::DocumentTypeFlowObj documentType;
|
|
+ static TransformFOTBuilder::ProcessingInstructionFlowObj pi;
|
|
+ static TransformFOTBuilder::ElementFlowObj element;
|
|
+ static TransformFOTBuilder::EmptyElementFlowObj emptyElement;
|
|
+ static TransformFOTBuilder::EntityFlowObj entity;
|
|
+ static TransformFOTBuilder::EntityRefFlowObj entityRef;
|
|
+ static TransformFOTBuilder::DocumentTypeFlowObj documentType;
|
|
static const FOTBuilder::Extension extensions[] = {
|
|
{
|
|
"UNREGISTERED::James Clark//Flow Object Class::processing-instruction",
|