Commit graph

46 commits

Author SHA1 Message Date
Joey Hess
a1730cd6af
adeiu, MissingH
Removed dependency on MissingH, instead depending on the split
library.

After laying groundwork for this since 2015, it
was mostly straightforward. Added Utility.Tuple and
Utility.Split. Eyeballed System.Path.WildMatch while implementing
the same thing.

Since MissingH's progress meter display was being used, I re-implemented
my own. Bonus: Now progress is displayed for transfers of files of
unknown size.

This commit was sponsored by Shane-o on Patreon.
2017-05-16 01:03:52 -04:00
Joey Hess
113b10cdc9
simpler more generic processTranscript'
This allows using functions that generate CreateProcess and passing the
result to processTranscript', which is more flexible, and also simpler
than the old interface.

This commit was sponsored by Riku Voipio.
2017-02-15 16:02:10 -04:00
Joey Hess
b22409db38
avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
Joey Hess
5fe450514b
Fix build with directory-1.2.6.2.
It started exporting a isSymbolicLink which supports windows. But,
git-annex does no use symlinks on windows yet and this conflicts with the
function by the same name from unix-compat, so hide it.
2016-04-28 13:18:44 -04:00
Joey Hess
19dbe2a611 webapp: Fix support for entering password when setting up a ssh remote. 2015-09-03 11:03:08 -07:00
Joey Hess
86e638567a Fix Windows build to work with ghc 7.10
It was failing at link time, some problem with terminatePID.
Re-implemented that to not use a C wrapper function, which cleared up the
problem. Removed old EvilLinker hack with must have been related to the
same problem.

Note that I have not tested this with older ghc's. In
f11f7520b5 I mention having tried this
approach before, and getting segfaults.. So, who knows. It seems to work
fine with ghc 7.10 at least.
2015-09-01 14:51:14 -07:00
Joey Hess
afc5153157 update my email address and homepage url 2015-01-21 12:50:09 -04:00
Joey Hess
7b50b3c057 fix some mixed space+tab indentation
This fixes all instances of " \t" in the code base. Most common case
seems to be after a "where" line; probably vim copied the two space layout
of that line.

Done as a background task while listening to episode 2 of the Type Theory
podcast.
2014-10-09 15:09:11 -04:00
Joey Hess
84227bd21c fix build 2014-06-13 11:14:50 -04:00
Joey Hess
f11f7520b5 windows: Fix process termination code.
The ctrl-c hack used before didn't actually seem to work.

No haskell libraries expose TerminateProcess. I tried just calling it via
FFI, but got segfaults, probably to do with the wacky process handle not
being managed correctly. Moving it all into one C function worked.

This was hell. The EvilLinker hack was just final icing on the cake.
We all know what the cake was made of.
2014-02-13 15:53:10 -04:00
Joey Hess
7dd94c0846 remove debug info 2014-01-30 13:34:24 -04:00
Joey Hess
6c1a50b4ea fix EvilLinker to not stomp on environment 2013-12-10 14:21:22 -04:00
Joey Hess
2b13776449 remove debug 2013-12-10 13:56:08 -04:00
Joey Hess
5315efa3d6 parse out additional env vars when running collect2 2013-12-10 13:51:52 -04:00
Joey Hess
656ae5f823 try setting TMPDIR for collect2 to not use C:\Windows 2013-12-10 12:53:37 -04:00
Joey Hess
5f859e648c debug 2013-12-10 12:50:04 -04:00
Joey Hess
902d14b2ee remove debug 2013-12-10 12:43:42 -04:00
Joey Hess
15fda7f452 fix infinite recursion on failed parse 2013-12-09 15:34:56 -04:00
Joey Hess
0e729fdff6 wall clean 2013-12-09 15:28:33 -04:00
Joey Hess
5017523183 record output to file 2013-12-09 15:22:53 -04:00
Joey Hess
d5981949e0 detect parse failure where command is somehow empty (wtf?) 2013-12-09 15:17:55 -04:00
Joey Hess
c737299ebf more horrible path fixup 2013-12-08 15:42:27 -04:00
Joey Hess
fc40432cff typo 2013-12-07 11:18:02 -04:00
Joey Hess
50f4f2b1ef debug 2013-12-07 11:14:54 -04:00
Joey Hess
24469a7d54 lose the -v2, unneeded 2013-12-07 11:13:02 -04:00
Joey Hess
5cdd933117 improve debuggin on failure 2013-12-06 18:50:13 -04:00
Joey Hess
ce3f5138c2 improve parser robustness 2013-12-06 18:26:52 -04:00
Joey Hess
db26e3c4de try to fix collect2 output parser 2013-12-06 18:06:39 -04:00
Joey Hess
fee56536dc more verbose cabal 2013-12-06 17:38:41 -04:00
Joey Hess
ec090f609f more paths 2013-12-06 15:24:39 -04:00
Joey Hess
5a03e1cacc better output 2013-12-06 15:18:13 -04:00
Joey Hess
1910795ddf error reporting 2013-12-06 15:15:47 -04:00
Joey Hess
b370f52f88 use EvilLinker on autobuilder (will probably need some more horrible path fixes) 2013-12-06 15:08:30 -04:00
Joey Hess
48b4650520 aaargh 2013-12-06 14:58:26 -04:00
Joey Hess
dea7dedaf8 more path mangling, because DOS 2013-12-06 14:46:32 -04:00
Joey Hess
3b3276988c propigate ld failure 2013-12-06 14:29:58 -04:00
Joey Hess
b97fe204ba progress 2013-12-06 14:20:44 -04:00
Joey Hess
5b5c33e06d pass COLLECT_GCC_OPTIONS 2013-12-06 13:53:58 -04:00
Joey Hess
237f72990e now it gets truely nightmarish 2013-12-06 13:39:35 -04:00
Joey Hess
a5644eeeb9 gcc output parser 2013-12-06 13:27:29 -04:00
Joey Hess
0bf516d018 foo 2013-12-06 13:14:01 -04:00
Joey Hess
6b30b66160 mangle \ in paths (sheesh) 2013-12-06 12:55:32 -04:00
Joey Hess
598dc56222 update 2013-12-06 12:48:39 -04:00
Joey Hess
03f0fa1f2f debug 2013-12-06 12:44:40 -04:00
Joey Hess
639808658d EvilLinker stage 2 2013-12-06 12:43:30 -04:00
Joey Hess
01799cafc3 EvilLinker, stage 1 2013-12-06 12:27:21 -04:00