Windows: add missing files needed for msi build
authorBruce Cran <bruce@cran.org.uk>
Fri, 28 Jan 2011 07:41:42 +0000 (08:41 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 28 Jan 2011 07:41:42 +0000 (08:41 +0100)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
README
os/windows/FIO.lnk [new file with mode: 0644]
os/windows/fio/FIO.bat [new file with mode: 0644]

diff --git a/README b/README
index cc84fede5054adf38003872a21d93fa7bf92bcd7..89a88e9615cbc2dea6ef7a0f00b0859ecb92d9f8 100644 (file)
--- a/README
+++ b/README
@@ -109,9 +109,9 @@ Windows
 On Windows Cygwin (http://www.cygwin.com) is required with at least
 devel/gcc4 and devel/make installed in order to build fio, and
 admin/cygrunsrv to run it. You can also install devel/git to fetch/update
-the source files. To create an MSI installer package, install WiX 3.6 from
-http://wix.sourceforge.net/releases/ and run dobuild.cmd from the
-os/windows directory.
+the source files. To create an MSI installer package put a copy of Cygwin
+in os\windows\fio, install WiX 3.6 from http://wix.sourceforge.net/releases/
+and run dobuild.cmd from the os/windows directory.
 
 Before running fio you'll need to have a copy of cygserver running. Run 
 "/usr/bin/cygserver-config" from an elevated Cygwin shell (i.e. launch the
diff --git a/os/windows/FIO.lnk b/os/windows/FIO.lnk
new file mode 100644 (file)
index 0000000..5a8bdef
Binary files /dev/null and b/os/windows/FIO.lnk differ
diff --git a/os/windows/fio/FIO.bat b/os/windows/fio/FIO.bat
new file mode 100644 (file)
index 0000000..cb3ca86
--- /dev/null
@@ -0,0 +1,9 @@
+@echo off\r
+\r
+C:\r
+IF EXIST     "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES(X86)%\FIO\r
+IF NOT EXIST "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES%\FIO\r
+chdir "%ROOTDIR%\bin"\r
+\r
+bash -c "echo \"Run FIO by typing 'fio'\" && echo \"This is a virtual filesystem: the root directory is $ROOTDIR\" && echo \"In this environment the path separator is '/' not '\\'\" && echo \"The C: drive is available under /cygdrive/c\" && echo \"Examples are in /examples ($ROOTDIR\\examples)\" && echo \"Type 'cd' to change directory and 'dir' (or 'ls') to see directory contents\" && echo \"QuickEdit mode is enabled: copy text by highlighting it and right-clicking\" && echo \"To exit, close the window\" && /usr/sbin/cygserver & 2> /dev/null"\r
+bash --login -i
\ No newline at end of file