]> gitweb.factorcode.org Git - factor.git/commitdiff
editors.geany.windows: Add Windows support.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 9 Apr 2013 23:50:19 +0000 (16:50 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 9 Apr 2013 23:51:14 +0000 (16:51 -0700)
basis/editors/geany/geany.factor
basis/editors/geany/windows/authors.txt [new file with mode: 0644]
basis/editors/geany/windows/platforms.txt [new file with mode: 0644]
basis/editors/geany/windows/windows.factor [new file with mode: 0644]

index dfe107556429184f9c58741846a3be8162c84c05..f273812e58a0af8edbd518c8623a29ee75eb159f 100644 (file)
@@ -1,6 +1,7 @@
 ! Copyright (C) 2013 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: editors fry kernel make math.parser namespaces system ;
+USING: editors fry kernel make math.parser namespaces system
+vocabs ;
 IN: editors.geany
 
 SINGLETON: geany
@@ -16,4 +17,6 @@ M: geany editor-command
         geany-path ,
         _ ,
         "--line" , _ number>string ,
-    ] { } make ;
\ No newline at end of file
+    ] { } make ;
+
+os windows? [ "editors.geany.windows" require ] when
\ No newline at end of file
diff --git a/basis/editors/geany/windows/authors.txt b/basis/editors/geany/windows/authors.txt
new file mode 100644 (file)
index 0000000..7c1b2f2
--- /dev/null
@@ -0,0 +1 @@
+Doug Coleman
diff --git a/basis/editors/geany/windows/platforms.txt b/basis/editors/geany/windows/platforms.txt
new file mode 100644 (file)
index 0000000..8e1a559
--- /dev/null
@@ -0,0 +1 @@
+windows
diff --git a/basis/editors/geany/windows/windows.factor b/basis/editors/geany/windows/windows.factor
new file mode 100644 (file)
index 0000000..a4606d6
--- /dev/null
@@ -0,0 +1,10 @@
+! Copyright (C) 2013 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: editors.geany io.directories.search.windows kernel
+namespaces sequences system ;
+IN: editors.geany.windows
+
+M: windows geany-path
+    \ geany-path get-global [
+        "Geany" [ "Geany.exe" tail? ] find-in-program-files
+    ] unless* ;
\ No newline at end of file