Skip to content

Instantly share code, notes, and snippets.

@Songmu
Created June 2, 2011 11:10
Show Gist options
  • Save Songmu/1004256 to your computer and use it in GitHub Desktop.
Save Songmu/1004256 to your computer and use it in GitHub Desktop.
swfmill-0.3.1.patch
diff -ur ./src/Makefile.am ../swfmill-0.3.1.patch/src/Makefile.am
--- ./src/Makefile.am 2010-07-15 09:30:13.000000000 +0900
+++ ../swfmill-0.3.1.patch/src/Makefile.am 2011-06-02 19:46:54.000000000 +0900
@@ -74,7 +74,7 @@
$(SIMPLE_DIALECT_GENERATEDSOURCES): $(SIMPLE_DIALECT_GENERATEDSOURCES:.cpp=.xml) xslt/assemble.xsl $(SIMPLE_DIALECT_XSLTS)
xsltproc $(srcdir)/xslt/assemble.xsl $< > $(@:.cpp=.xsl)
- echo "#include \"xslt/xslt.h\"" > $@
+ echo "#include \"/usr/include/libxslt/xslt.h\"" > $@
echo "const char *xslt_simple = " >> $@
sed -e "s/namespaces=\\\"hack\\\"/$(NAMESPACES)/" -e "s/\"/\\\\\"/g" -e "s/\(.*\)/\"\1\\\\n\"/g" $(@:.cpp=.xsl) >> $@
echo ";" >> $@
diff -ur ./src/Makefile.in ../swfmill-0.3.1.patch/src/Makefile.in
--- ./src/Makefile.in 2010-07-16 04:18:52.000000000 +0900
+++ ../swfmill-0.3.1.patch/src/Makefile.in 2011-06-02 19:47:24.000000000 +0900
@@ -1300,7 +1300,7 @@
$(SIMPLE_DIALECT_GENERATEDSOURCES): $(SIMPLE_DIALECT_GENERATEDSOURCES:.cpp=.xml) xslt/assemble.xsl $(SIMPLE_DIALECT_XSLTS)
xsltproc $(srcdir)/xslt/assemble.xsl $< > $(@:.cpp=.xsl)
- echo "#include \"xslt/xslt.h\"" > $@
+ echo "#include \"/usr/include/libxslt/xslt.h\"" > $@
echo "const char *xslt_simple = " >> $@
sed -e "s/namespaces=\\\"hack\\\"/$(NAMESPACES)/" -e "s/\"/\\\\\"/g" -e "s/\(.*\)/\"\1\\\\n\"/g" $(@:.cpp=.xsl) >> $@
echo ";" >> $@
diff -ur ./src/swfmill.cpp ../swfmill-0.3.1.patch/src/swfmill.cpp
--- ./src/swfmill.cpp 2010-07-15 09:30:12.000000000 +0900
+++ ../swfmill-0.3.1.patch/src/swfmill.cpp 2011-06-02 19:46:07.000000000 +0900
@@ -1,7 +1,7 @@
#include <libexslt/exslt.h>
#include "SWFFile.h"
#include "swft.h"
-#include "xslt.h"
+#include "libxslt/xslt.h"
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
@@ -387,6 +387,7 @@
}
const char *outfile = argv[argc-1];
argc--;
+ extern const char* xslt_simple;
internal_stylesheet = xslt_simple;
@@ -413,7 +414,8 @@
int main( int argc, char *argv[] ) {
char *command = NULL;
-
+ extern const char* xslt_simple;
+
swft_register();
exsltRegisterAll();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment