summaryrefslogtreecommitdiff
path: root/homebrew/xsd/patches.sh
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/xsd/patches.sh
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/xsd/patches.sh')
-rwxr-xr-xhomebrew/xsd/patches.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/homebrew/xsd/patches.sh b/homebrew/xsd/patches.sh
new file mode 100755
index 000000000..664665c75
--- /dev/null
+++ b/homebrew/xsd/patches.sh
@@ -0,0 +1,28 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx b/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx
+index fa48a9a..59994ae 100644
+--- a/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx
++++ b/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx
+@@ -2,6 +2,7 @@
+ // copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC
+ // license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
++#include <iostream>
+ #include <algorithm>
+
+ #include <cutl/compiler/type-info.hxx>
+diff --git a/xsd/examples/cxx/tree/makefile b/xsd/examples/cxx/tree/makefile
+index 172195a..d8c8198 100644
+--- a/xsd/examples/cxx/tree/makefile
++++ b/xsd/examples/cxx/tree/makefile
+@@ -39,7 +39,7 @@ $(install): $(addprefix $(out_base)/,$(addsuffix /.install,$(all_examples)))
+ $(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(all_examples)))
+ $(call install-data,$(src_base)/README,$(dist_prefix)/$(path)/README)
+
+-$(dist-win): export dirs := $(shell find $(src_base) -type d -exec test -f {}/driver.cxx ';' -printf '%P ')
++$(dist-win): export dirs := $(shell find "$(src_base)" -type d -exec test -f {}/driver.cxx ';' -exec bash -c 'd="{}"; printf "%s " "${d#'"$(src_base)"'/}"' ";")
+ $(dist-win): |$(out_root)/.dist-pre
+ $(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(all_examples)))
+ $(call install-data,$(src_base)/README,$(dist_prefix)/$(path)/README.txt)
+EOF