This removes the version from the doc directory name.
* Use standard autoconf's --docdir
* Initialize autoconf's package name and version
They are used as defaults for --docdir
* Pass PACKAGE_TARNAME to Makefile
No idea why it uses this var instead of PACKAGE
* Cleaned up VERSION variables.
* Fixed VERSION_QUOTED.
---------
Co-authored-by: Thibault Godouet <yo8192@users.noreply.github.com>
# Should not be changed under this #
####################################
# Should not be changed under this #
####################################
+VERSION := @PACKAGE_VERSION@
CFLAGS += $(OPTIM) $(OPTION) $(DEFS) $(CPPFLAGS) $(LDFLAGS)
ifeq ($(FCRONDYN), 1)
LIBOBJS := $(LIBOBJS)
CFLAGS += $(OPTIM) $(OPTION) $(DEFS) $(CPPFLAGS) $(LDFLAGS)
ifeq ($(FCRONDYN), 1)
LIBOBJS := $(LIBOBJS)
dnl Initial settings
dnl ---------------------------------------------------------------------
dnl Initial settings
dnl ---------------------------------------------------------------------
+AC_INIT([fcron], [3.4.1pre])
AC_CONFIG_SRCDIR([allow.c])
AC_CONFIG_HEADERS([config.h])
AC_PREREQ([2.71])
m4_include([m4/ax_lib_readline.m4])
AC_CONFIG_SRCDIR([allow.c])
AC_CONFIG_HEADERS([config.h])
AC_PREREQ([2.71])
m4_include([m4/ax_lib_readline.m4])
-vers="3.4.1pre"
-vers_quoted="\"$vers\""
-AC_DEFINE_UNQUOTED(VERSION, $vers)
-AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted)
-VERSION="$vers"
-AC_SUBST(VERSION)
+AC_DEFINE_UNQUOTED(VERSION_QUOTED, "${PACKAGE_VERSION}")
copyright_quoted="\"2000-2025\""
AC_DEFINE_UNQUOTED(COPYRIGHT_QUOTED, $copyright_quoted)
copyright_quoted="\"2000-2025\""
AC_DEFINE_UNQUOTED(COPYRIGHT_QUOTED, $copyright_quoted)
AC_DEFINE_UNQUOTED(PROC, "$proc")
fi
AC_DEFINE_UNQUOTED(PROC, "$proc")
fi
-docdir="${datadir}/doc"
-AC_MSG_CHECKING(location of doc directory)
-AC_ARG_WITH(docdir,
-[ --with-docdir=PATH Directory containing documentation.],
-[ case "$withval" in
- no)
- AC_MSG_ERROR(Need DOCDIR.)
- ;;
- yes)
- ;;
- *)
- docdir="$withval"
- ;;
- esac ])
-
-AC_MSG_RESULT($docdir)
-DOCDIR="$docdir"
-AC_SUBST(DOCDIR)
-
-
dnl systemd init system
SYSTEMD_DIR="no"
dnl systemd init system
SYSTEMD_DIR="no"
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
prefix = @prefix@
datarootdir = @datarootdir@
DESTMAN = @mandir@
prefix = @prefix@
datarootdir = @datarootdir@
DESTMAN = @mandir@
INSTALL = @INSTALL@
JADE = @JADE@
INSTALL = @INSTALL@
JADE = @JADE@
####################################
STYLESHEET = stylesheets/fcron-doc.dsl
MODFILE = fcron-doc.mod
####################################
STYLESHEET = stylesheets/fcron-doc.dsl
MODFILE = fcron-doc.mod
+VERSION = @PACKAGE_VERSION@
SGMLFILES = fcron-doc.sgml readme.sgml relnotes.sgml changes.sgml faq.sgml thanks.sgml todo.sgml fcron.8.sgml fcrontab.1.sgml install.sgml fcron.conf.5.sgml fcrontab.5.sgml fcrondyn.1.sgml fdl.sgml gpl.sgml
TXTFILES = readme install thanks faq gpl todo relnotes changes
MANPAGES = fcron.8 fcron.conf.5 fcrontab.1 fcrontab.5 fcrondyn.1
SGMLFILES = fcron-doc.sgml readme.sgml relnotes.sgml changes.sgml faq.sgml thanks.sgml todo.sgml fcron.8.sgml fcrontab.1.sgml install.sgml fcron.conf.5.sgml fcrontab.5.sgml fcrondyn.1.sgml fdl.sgml gpl.sgml
TXTFILES = readme install thanks faq gpl todo relnotes changes
MANPAGES = fcron.8 fcron.conf.5 fcrontab.1 fcrontab.5 fcrondyn.1
# and not a tarball)
# The reason we don't try to generate the doc everytime is that we want the user
# to be able to compile and install fcron without needing all the tools required
# and not a tarball)
# The reason we don't try to generate the doc everytime is that we want the user
# to be able to compile and install fcron without needing all the tools required
-# to generate the documentations.
+# to generate the documentations.
#
# "make doc" will be called once at max, as all the tests will
#
# "make doc" will be called once at max, as all the tests will
-# succeed after the first time "make doc" is called
+# succeed after the first time "make doc" is called
@(for i in $(LANGUAGES); \
do \
test -f $(SRCDIR)/$$i/HTML/index.html || $(MAKE) doc ; \
@(for i in $(LANGUAGES); \
do \
test -f $(SRCDIR)/$$i/HTML/index.html || $(MAKE) doc ; \
- @(echo "Installing documentation files in $(DESTDIR)$(DESTDOC)/fcron-$(VERSION)...")
- @(if test ! -d $(DESTDIR)$(DESTDOC)/fcron-$(VERSION); then $(INSTALL) -m 755 -d $(DESTDIR)$(DESTDOC)/fcron-$(VERSION) ; fi)
+ @(echo "Installing documentation files in $(DESTDIR)$(DESTDOC)...")
+ @(if test ! -d $(DESTDIR)$(DESTDOC); then $(INSTALL) -m 755 -d $(DESTDIR)$(DESTDOC) ; fi)
@(for l in $(LANGUAGES); do \
@(for l in $(LANGUAGES); do \
- DIR=$(DESTDIR)$(DESTDOC)/fcron-$(VERSION) ; \
+ DIR=$(DESTDIR)$(DESTDOC) ; \
if test ! -d $$DIR/$$l; then \
$(INSTALL) -m 755 -d $$DIR/$$l ; \
fi ; \
if test ! -d $$DIR/$$l; then \
$(INSTALL) -m 755 -d $$DIR/$$l ; \
fi ; \
done
chown $(ROOTNAME) $(DESTDIR)$(DESTDOC)
chgrp $(ROOTGROUP) $(DESTDIR)$(DESTDOC)
done
chown $(ROOTNAME) $(DESTDIR)$(DESTDOC)
chgrp $(ROOTGROUP) $(DESTDIR)$(DESTDOC)
- chown $(ROOTNAME) $(DESTDIR)$(DESTDOC)/fcron-$(VERSION)
- chgrp $(ROOTGROUP) $(DESTDIR)$(DESTDOC)/fcron-$(VERSION)
for l in $(LANGUAGES); do \
for l in $(LANGUAGES); do \
- DIR=$(DESTDIR)$(DESTDOC)/fcron-$(VERSION)/$$l ; \
+ DIR=$(DESTDIR)$(DESTDOC)/$$l ; \
chown $(ROOTNAME) $$DIR ; \
chgrp $(ROOTGROUP) $$DIR ; \
for i in txt HTML; do \
chown $(ROOTNAME) $$DIR ; \
chgrp $(ROOTGROUP) $$DIR ; \
for i in txt HTML; do \
- rm -fR $(DESTDOC)/fcron-$(VERSION)
@(echo "Removing man pages ...")
@(for l in $(LANGUAGES); do \
if test "x$$l" = "xen"; then \
@(echo "Removing man pages ...")
@(for l in $(LANGUAGES); do \
if test "x$$l" = "xen"; then \