Compile cGit 2.0.4

John Keeping john at
Mon Aug 11 21:53:58 CEST 2014

On Mon, Aug 11, 2014 at 08:40:53PM +0100, Jorge Bastos wrote:
> Trying to compile cgit last git head cgit (2.0.4) to see if one charset
> problem is solved, but got this:
> Peixe:/usr/local/src/cgit/cgit# make
>     SUBDIR git
> ./ line 2: $'\r': command not found
> ./ line 5: $'\r': command not found
> ./ line 21: syntax error: unexpected end of file
> make[1]: *** No rule to make target `../VERSION', needed by `../cgit.o'.
> Stop.
> make: *** [cgit] Error 2

Do you have a weird CGIT_VERSION defined in your environment?  The
string $'\r' doesn't appear in so I don't understand
where that error can be coming from.

Alternatively do you have a weird (non-POSIX) /bin/sh?  What operating
system are you using?

More information about the CGit mailing list