File: day_73__EvilLinker.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (28 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Android has the EvilSplicer, now Windows gets the EvilLinker. Fully
automated, and truly horrible solution to the too long command line problem.

Now when I run `git annex webapp` on windows, it almost manages to open
the web browser.

At the same time, I worked with Yuri to upgrade the Windows autobuilder to a
newer Haskell platform, which can install Yesod. I have not quite achieved
a successful webapp build on the autobuilder, but it seems close.

----

Here's a nice Haskell exercise for someone. I wrote this quick and dirty
function in the EvilSplicer, but it's crying out for a generalized solution.

[[!format haskell """
{- Input contains something like 
 - c:/program files/haskell platform/foo -LC:/Program Files/Haskell Platform/ -L...
 - and the *right* spaces must be escaped with \
 -
 - Argh.
 -}
escapeDosPaths :: String -> String
escapeDosPaths = replace "Program Files" "Program\\ Files"
        . replace "program files" "program\\ files"
        . replace "Haskell Platform" "Haskell\\ Platform"
        . replace "haskell platform" "haskell\\ platform"
"""]]