Ticket #2295 (closed defect: fixed)
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
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
This was fixed in changeset:6376db2df16729958f65aad032294d72ee9390f1
Cherry-picked to 4.7.0-stable: changeset:c6462a78f664d725a69cb158cf5ff5009d8048d7
Replying to Catcher:
Seems your shell can't the $() command substituton. Please try the `` substitution instead: