diff options
author | Mitch Jackson <mitch@freeside.biz> | 2019-02-19 20:20:43 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2019-02-27 03:27:45 -0500 |
commit | 1e4a622fb687ae4c142eafed732a582e253ff802 (patch) | |
tree | c34ca4b5fba71abe994c499645312e0a78180fa3 /debian | |
parent | 6a218508c1eda34d0bd4f9873ebefdf1d73cc197 (diff) |
RT# 81961 Pod2Html make docs during build, instead of install
Diffstat (limited to 'debian')
-rw-r--r-- | debian/freeside-lib.postinst | 15 | ||||
-rwxr-xr-x | debian/rules | 5 |
2 files changed, 5 insertions, 15 deletions
diff --git a/debian/freeside-lib.postinst b/debian/freeside-lib.postinst index 0692f8910..dbc3a7590 100644 --- a/debian/freeside-lib.postinst +++ b/debian/freeside-lib.postinst @@ -3,19 +3,4 @@ # Rebuild ls-R filename databases used by TeX texhash /usr/local/share/texmf -# Generate HTML documentation from perl POD -if [ -z "$APACHE_VERSION" ]; then - export APACHE_VERSION=`/usr/sbin/apache2 -v | grep -q '\/2\.4\.' && echo '2.4' || echo '2'` -fi - -if [ -z "$APACHE_DOCUMENT_ROOT" ]; then - export APACHE_DOCUMENT_ROOT=`[ ${APACHE_VERSION} = '2.4' ] && echo '/var/www/html' || echo '/var/www'` -fi - -export POD2HTML_DOCUMENT_ROOT="${APACHE_DOCUMENT_ROOT}/freeside/docs/library" - -mkdir -p "$POD2HTML_DOCUMENT_ROOT" -perl -MFS::Misc::Pod2Html -e "FS::Misc::Pod2Html::fs_pod2html('$POD2HTML_DOCUMENT_ROOT');" -chown -R freeside "$POD2HTML_DOCUMENT_ROOT" - exit 0 diff --git a/debian/rules b/debian/rules index 36165a4fc..867324d27 100755 --- a/debian/rules +++ b/debian/rules @@ -49,6 +49,7 @@ export MASON_HANDLER=$(TMP)-webui/usr/local/etc/freeside/handler.pl export APACHE_VERSION := $(shell /usr/sbin/apache2 -v | grep -q '\/2\.4\.' && echo '2.4' || echo '2') export APACHE_DOCUMENT_ROOT := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo '/var/www/html' || echo '/var/www') export FREESIDE_DOCUMENT_ROOT = $(TMP)$(APACHE_DOCUMENT_ROOT)/freeside +export POD2HTML_DOCUMENT_ROOT = $(FREESIDE_DOCUMENT_ROOT)/docs/library export INIT_FILE = $(TMP).init export INIT_INSTALL = /bin/true export HTTPD_RESTART = /bin/true @@ -287,6 +288,10 @@ install-stamp: build-stamp s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\ " ${RT_PATH}/etc/RT_SiteConfig.pm + # Build pod2html documentation + install -d ${POD2HTML_DOCUMENT_ROOT} + perl -IFS -MFS::Misc::Pod2Html -e "FS::Misc::Pod2Html::fs_pod2html_from_src('${POD2HTML_DOCUMENT_ROOT}');" + dh_install #touch $@ |