List for cgit developers and users
 help / color / mirror / Atom feed
* Compile cGit 2.0.4
@ 2014-08-11 19:40 mysql.jorge
  2014-08-11 19:53 ` john
  0 siblings, 1 reply; 5+ messages in thread
From: mysql.jorge @ 2014-08-11 19:40 UTC (permalink / raw)


Hi,

 

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

./gen-version.sh: line 2: $'\r': command not found

./gen-version.sh: line 5: $'\r': command not found

./gen-version.sh: 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

 

What should I do?

Thanks in advanced,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20140811/47890a10/attachment.html>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Compile cGit 2.0.4
  2014-08-11 19:40 Compile cGit 2.0.4 mysql.jorge
@ 2014-08-11 19:53 ` john
  2014-08-11 19:56   ` mysql.jorge
  0 siblings, 1 reply; 5+ messages in thread
From: john @ 2014-08-11 19:53 UTC (permalink / raw)


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
> ./gen-version.sh: line 2: $'\r': command not found
> ./gen-version.sh: line 5: $'\r': command not found
> ./gen-version.sh: 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 gen-version.sh 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?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Compile cGit 2.0.4
  2014-08-11 19:53 ` john
@ 2014-08-11 19:56   ` mysql.jorge
  2014-08-11 20:24     ` john
  0 siblings, 1 reply; 5+ messages in thread
From: mysql.jorge @ 2014-08-11 19:56 UTC (permalink / raw)


> Do you have a weird CGIT_VERSION defined in your environment?  The
> string $'\r' doesn't appear in gen-version.sh 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?

I've always compiled cgit manually here.
Debian, sh is the normal "shtool" package.

Git 2.1.0-rc1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Compile cGit 2.0.4
  2014-08-11 19:56   ` mysql.jorge
@ 2014-08-11 20:24     ` john
  2014-08-11 20:33       ` mysql.jorge
  0 siblings, 1 reply; 5+ messages in thread
From: john @ 2014-08-11 20:24 UTC (permalink / raw)


On Mon, Aug 11, 2014 at 08:56:40PM +0100, Jorge Bastos wrote:
> > Do you have a weird CGIT_VERSION defined in your environment?  The
> > string $'\r' doesn't appear in gen-version.sh 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?
> 
> I've always compiled cgit manually here.
> Debian, sh is the normal "shtool" package.

"shtool" isn't a shell.  /bin/sh is probably either dash or bash.  What
does "dpkg -S /bin/sh" say?

It looks like the problem is actually that the file has DOS line
endings.  I get the exact same problem you do if I run:

	unix2dos gen-version.sh

Have you got Git's "core.eol" config set to "crlf"?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Compile cGit 2.0.4
  2014-08-11 20:24     ` john
@ 2014-08-11 20:33       ` mysql.jorge
  0 siblings, 0 replies; 5+ messages in thread
From: mysql.jorge @ 2014-08-11 20:33 UTC (permalink / raw)


> "shtool" isn't a shell.  /bin/sh is probably either dash or bash.  What
> does "dpkg -S /bin/sh" say?
> 
> It looks like the problem is actually that the file has DOS line
> endings.  I get the exact same problem you do if I run:
> 
> 	unix2dos gen-version.sh
> 
> Have you got Git's "core.eol" config set to "crlf"?

Didn't touch it.
Ok dos2unix solved it, but, i havent edit that file, less with an windows
editor, I think it came with that from last git pull I did.

Peixe:/usr/local/src/cgit/cgit# dpkg -S /bin/sh
diversion by dash from: /bin/sh
diversion by dash to: /bin/sh.distrib
dash: /bin/sh


OK compiled! Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-11 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 19:40 Compile cGit 2.0.4 mysql.jorge
2014-08-11 19:53 ` john
2014-08-11 19:56   ` mysql.jorge
2014-08-11 20:24     ` john
2014-08-11 20:33       ` mysql.jorge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).