summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-08-10 14:44:17 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-08-10 14:44:17 +0200
commit4a6b24a567142317a24a98d2ab998f5093a581cc (patch)
tree522107a269c040e69b933fc9f69fe330703562b5 /utils
parent9fe78b708868dcb5bdbfc88ed96dee18c6f1f6b3 (diff)
downloadcrawler-4a6b24a567142317a24a98d2ab998f5093a581cc.tar.gz
crawler-4a6b24a567142317a24a98d2ab998f5093a581cc.tar.bz2
first porting attempts to Windows:
nmake support from Wolframe module loader adapted tests for typeinfo and template trickery
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile.W3213
-rwxr-xr-xutils/win32/Makefile.W3233
-rw-r--r--utils/win32/README2
-rwxr-xr-xutils/win32/dos2unix.cpp19
4 files changed, 67 insertions, 0 deletions
diff --git a/utils/Makefile.W32 b/utils/Makefile.W32
new file mode 100644
index 0000000..455376c
--- /dev/null
+++ b/utils/Makefile.W32
@@ -0,0 +1,13 @@
+TOPDIR = ..
+
+SUBDIRS = win32
+
+!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk
+
+local_all:
+
+local_clean:
+
+local_distclean:
+
+local_test:
diff --git a/utils/win32/Makefile.W32 b/utils/win32/Makefile.W32
new file mode 100755
index 0000000..2edb2d1
--- /dev/null
+++ b/utils/win32/Makefile.W32
@@ -0,0 +1,33 @@
+TOPDIR = ..\..
+
+SUBDIRS =
+
+!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk
+
+INCLUDE_CXXFLAGS = \
+ /D_WIN32_WINNT=0x504
+
+INCLUDE_DIRS = \
+ /I. \
+ /I$(TOPDIR)\src
+
+INCLUDE_LDFLAGS = \
+
+INCLUDE_LIBS = \
+
+CPP_BINS = \
+ dos2unix.exe
+
+OBJS =
+
+!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk
+
+dos2unix.exe: dos2unix.obj
+
+local_all:
+
+local_clean:
+
+local_distclean:
+
+local_test:
diff --git a/utils/win32/README b/utils/win32/README
new file mode 100644
index 0000000..53fcb66
--- /dev/null
+++ b/utils/win32/README
@@ -0,0 +1,2 @@
+Utilities for Windows, mainly used for testing, so that we don't have
+to pull in a lot of third party tools
diff --git a/utils/win32/dos2unix.cpp b/utils/win32/dos2unix.cpp
new file mode 100755
index 0000000..7010d0b
--- /dev/null
+++ b/utils/win32/dos2unix.cpp
@@ -0,0 +1,19 @@
+#include <iostream>
+#include <string>
+
+#include <io.h>
+#include <fcntl.h>
+
+using namespace std;
+
+int main( void )
+{
+ _setmode( _fileno( stdout ), _O_BINARY );
+
+ string line;
+ while( getline( cin, line ) ) {
+ cout << line << "\n";
+ }
+
+ return 0;
+}