mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-02 06:05:45 +01:00
Configure: Add a maintainer option to prepare generation of HTML for the website
When the new configure option '--with-web-repo' is used, the new target 'make website' becomes available and will generate HTML pages to be placed in the Homepage Repository. This patch does not generate any content yet but it prepares the skeleton to handle everything. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
ae78e88eef
commit
351e05dca9
@@ -194,6 +194,29 @@ m4_popdef([USEVAR])dnl
|
||||
])
|
||||
|
||||
|
||||
# WM_CHECK_WEBREPODIR
|
||||
# -------------------
|
||||
#
|
||||
# If the maintainer's option --with-web-repo was specified, check that the path provided is a valid
|
||||
# existing directory and that it is a GIT repository that looks like Window Maker's Website repo.
|
||||
AC_DEFUN_ONCE([WM_CHECK_WEBREPODIR],
|
||||
[AS_IF([test "x$WEB_REPO_ROOT" != "x"],
|
||||
[AS_IF([test ! -d "$WEB_REPO_ROOT"],
|
||||
[AC_MSG_ERROR([The path "$with_web_repo" is not a directory, for --with-web-repo])])
|
||||
|
||||
# Convert to an Absolute path in the case it is not
|
||||
WEB_REPO_ROOT=`cd "$WEB_REPO_ROOT" ; pwd`
|
||||
|
||||
AS_IF([test ! -d "$WEB_REPO_ROOT/.git"],
|
||||
[AC_MSG_ERROR([The path "$WEB_REPO_ROOT" is not a GIT repository, for --with-web-repo])])
|
||||
AS_IF([test ! -f "$WEB_REPO_ROOT/_config.yml"],
|
||||
[AC_MSG_ERROR([The path "$WEB_REPO_ROOT" does not look like Window Maker's website repository, for --with-web-repo])])
|
||||
])
|
||||
AM_CONDITIONAL([WITH_WEB_REPO], [test "x$WEB_REPO_ROOT" != "x"])
|
||||
AC_SUBST([WEB_REPO_ROOT])
|
||||
])
|
||||
|
||||
|
||||
# WM_FUNC_SECURE_GETENV
|
||||
# ---------------------
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user