Skip to content

Commit

Permalink
Ticket #4249: Autoreconf is failing with tarball prepared by make dist.
Browse files Browse the repository at this point in the history
version.sh: move from maint/utils to the root of the source tree
and make it a part of distributable tarball.

Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
aborodin committed May 26, 2021
1 parent 1a1c6cc commit 791acb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ endif

EXTRA_DIST =

dist_noinst_SCRIPTS = build-glib2.sh
dist_noinst_SCRIPTS = \
build-glib2.sh \
version.sh

dist_noinst_HEADERS = $(top_srcdir)/mc-version.h

Expand All @@ -29,11 +31,11 @@ CONFIG_STATUS_DEPENDENCIES = $(top_srcdir)/mc-version.h


update-version:
@if test -x $(top_srcdir)/maint/utils/version.sh; then \
$(top_srcdir)/maint/utils/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \
@if test -x $(top_srcdir)/version.sh; then \
$(top_srcdir)/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \
else \
if test ! -e $(top_srcdir)/mc-version.h; then \
echo "File not found: $(top_srcdir)/maint/utils/version.sh"; \
echo "File not found: $(top_srcdir)/version.sh"; \
exit 1; \
fi; \
fi
Expand Down
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
cd src/vfs/smbfs/helpers
date -u >include/stamp-h.in

$srcdir/maint/utils/version.sh "$srcdir"
$srcdir/version.sh "$srcdir"

if test -x $srcdir/configure.mc; then
$srcdir/configure.mc "$@"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dnl AC_INIT call, AC_INIT doesn't redefine them.
dnl As a result, config.h will not contain macros with variable version.
m4_define([AC_PACKAGE_VERSION], [])
m4_define([AC_PACKAGE_STRING], [])
AC_INIT([GNU Midnight Commander], m4_esyscmd_s([maint/utils/version.sh .]),
AC_INIT([GNU Midnight Commander], m4_esyscmd_s([./version.sh .]),
[https://www.midnight-commander.org/wiki/NewTicket], [mc],
[https://www.midnight-commander.org/])

Expand Down
File renamed without changes.

0 comments on commit 791acb4

Please sign in to comment.