List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: Compile cGit 2.0.4
Date: Mon, 11 Aug 2014 21:24:18 +0100	[thread overview]
Message-ID: <20140811202418.GC1261@serenity.lan> (raw)
In-Reply-To: <006e01cfb59e$5e615110$1b23f330$@jorge@decimal.pt>

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"?


  reply	other threads:[~2014-08-11 20:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11 19:40 mysql.jorge
2014-08-11 19:53 ` john
2014-08-11 19:56   ` mysql.jorge
2014-08-11 20:24     ` john [this message]
2014-08-11 20:33       ` mysql.jorge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140811202418.GC1261@serenity.lan \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).