Ticket #2295 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

file missing in distribution: maint/version.sh

Reported by: Catcher Owned by:
Priority: major Milestone: 4.7
Component: mc-core Version: 4.7.2
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

I was compiling mc for my system, SunOS.i386, and the make process died with "./maint/version.sh: File not found". Sure enough, this file was not present in the mc-4.7.2.tar.gz download. I found this file on your website, however, and copied it over, and managed to finish the make process successfully, after making a couple of edits to it.

The edits were to get around the error message:

./maint/version.sh: syntax error at line 36: `git_head=$' unexpected

and were as follows:

#git_head=$(git --git-dir "${src_top_dir}/.git" rev-parse --verify HEAD 2>/dev/null)
git_head="4.7.2"

#new_version="$(git --git-dir "${src_top_dir}/.git" describe 2>/dev/null)"
new_version="4.7.2"

I am not familiar with git or shell syntax, and don't know what version.sh is supposed to accomplish, and therefore don't really know what's happening here except that I managed to get around the problem.

Thought that I would post this here so that others who try to compile can benefit.

Thanks,
Catcher

Change History

comment:1 in reply to: ↑ description Changed 14 years ago by andrew_b

Replying to Catcher:

The edits were to get around the error message:

./maint/version.sh: syntax error at line 36: `git_head=$' unexpected

and were as follows:

#git_head=$(git --git-dir "${src_top_dir}/.git" rev-parse --verify HEAD 2>/dev/null)
git_head="4.7.2"

#new_version="$(git --git-dir "${src_top_dir}/.git" describe 2>/dev/null)"
new_version="4.7.2"

Seems your shell can't the $() command substituton. Please try the `` substitution instead:

git_head=`git --git-dir "${src_top_dir}/.git" rev-parse --verify HEAD 2>/dev/null`

new_version=`git --git-dir "${src_top_dir}/.git" describe 2>/dev/null`

comment:2 Changed 14 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to fixed
  • severity changed from no branch to merged
Note: See TracTickets for help on using tickets.