Changeset 14628 for trunk/FACT++


Ignore:
Timestamp:
11/15/12 22:34:26 (12 years ago)
Author:
tbretz
Message:
Added jsdoc for JavaScript documentation.
Location:
trunk/FACT++
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.am

    r14536 r14628  
    537537endif
    538538
     539if HAS_JSDOC
     540MAN_TARGETS += jsdoc
     541endif
     542
    539543$(dist_man1_MANS): $(dist_man1_MANS:.man=)
    540544        @mkdir -p man
     
    546550.man.pdf: $<
    547551        $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
     552
     553jsdoc:
     554        jsdoc -d=html/dimctrl scripts/doc
     555
    548556
    549557man: $(MAN_TARGETS) doxygen-doc
  • trunk/FACT++/Makefile.in

    r14536 r14628  
    8686@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_16 = $(dist_man1_MANS:.man=.pdf)
    8787@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_17 = $(dist_man1_MANS:.man=.pdf)
     88@HAS_JSDOC_TRUE@am__append_18 = jsdoc
    8889subdir = .
    8990ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    619620INSTALL_SCRIPT = @INSTALL_SCRIPT@
    620621INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     622JSDOC = @JSDOC@
    621623LD = @LD@
    622624LDFLAGS = @LDFLAGS@
     
    11361138
    11371139#-------------------------------------------------------------------------
    1138 MAN_TARGETS = $(dist_man1_MANS) $(am__append_12) $(am__append_15)
     1140MAN_TARGETS = $(dist_man1_MANS) $(am__append_12) $(am__append_15) \
     1141        $(am__append_18)
    11391142all: $(BUILT_SOURCES)
    11401143        $(MAKE) $(AM_MAKEFLAGS) all-am
     
    27992802        $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
    28002803
     2804jsdoc:
     2805        jsdoc -d=html/dimctrl scripts/doc
     2806
    28012807man: $(MAN_TARGETS) doxygen-doc
    28022808
  • trunk/FACT++/configure

    r14328 r14628  
    662662HAS_DOXYGEN_FALSE
    663663HAS_DOXYGEN_TRUE
     664HAS_JSDOC_FALSE
     665HAS_JSDOC_TRUE
    664666HAS_HELP2MAN_FALSE
    665667HAS_HELP2MAN_TRUE
     
    670672HAS_COLORDIFF_FALSE
    671673HAS_COLORDIFF_TRUE
     674JSDOC
    672675HELP2MAN
    673676PS2PDF
     
    2397423977
    2397523978                cat > conftest.$ac_ext <<EOF
    23976 #line 23976 "configure"
     23979#line 23979 "configure"
    2397723980#include "confdefs.h"
    2397823981#include <qglobal.h>
     
    2494524948
    2494624949
     24950# Extract the first word of "jsdoc", so it can be a program name with args.
     24951set dummy jsdoc; ac_word=$2
     24952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     24953$as_echo_n "checking for $ac_word... " >&6; }
     24954if ${ac_cv_prog_JSDOC+:} false; then :
     24955  $as_echo_n "(cached) " >&6
     24956else
     24957  if test -n "$JSDOC"; then
     24958  ac_cv_prog_JSDOC="$JSDOC" # Let the user override the test.
     24959else
     24960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     24961for as_dir in $PATH
     24962do
     24963  IFS=$as_save_IFS
     24964  test -z "$as_dir" && as_dir=.
     24965    for ac_exec_ext in '' $ac_executable_extensions; do
     24966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     24967    ac_cv_prog_JSDOC="yes"
     24968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     24969    break 2
     24970  fi
     24971done
     24972  done
     24973IFS=$as_save_IFS
     24974
     24975  test -z "$ac_cv_prog_JSDOC" && ac_cv_prog_JSDOC="no"
     24976fi
     24977fi
     24978JSDOC=$ac_cv_prog_JSDOC
     24979if test -n "$JSDOC"; then
     24980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JSDOC" >&5
     24981$as_echo "$JSDOC" >&6; }
     24982else
     24983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     24984$as_echo "no" >&6; }
     24985fi
     24986
     24987
    2494724988
    2494824989##########################################################################
     
    2500125042  HAS_HELP2MAN_TRUE='#'
    2500225043  HAS_HELP2MAN_FALSE=
     25044fi
     25045
     25046 if test "$JSDOC" = yes; then
     25047  HAS_JSDOC_TRUE=
     25048  HAS_JSDOC_FALSE='#'
     25049else
     25050  HAS_JSDOC_TRUE='#'
     25051  HAS_JSDOC_FALSE=
    2500325052fi
    2500425053
     
    2545425503if test -z "${HAS_HELP2MAN_TRUE}" && test -z "${HAS_HELP2MAN_FALSE}"; then
    2545525504  as_fn_error $? "conditional \"HAS_HELP2MAN\" was never defined.
     25505Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25506fi
     25507if test -z "${HAS_JSDOC_TRUE}" && test -z "${HAS_JSDOC_FALSE}"; then
     25508  as_fn_error $? "conditional \"HAS_JSDOC\" was never defined.
    2545625509Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2545725510fi
     
    2807328126
    2807428127fi
     28128if test -z "$HAS_JSDOC_TRUE"; then :
     28129  { $as_echo "$as_me:${as_lineno-$LINENO}:  JavaScript docu        / 'jsdoc'            found: yes" >&5
     28130$as_echo "$as_me:  JavaScript docu        / 'jsdoc'            found: yes" >&6;}
     28131else
     28132  { $as_echo "$as_me:${as_lineno-$LINENO}:  JavaScript docu        / 'jsdoc'            found: no" >&5
     28133$as_echo "$as_me:  JavaScript docu        / 'jsdoc'            found: no" >&6;}
     28134
     28135fi
    2807528136if test -z "$HAS_HELP2MAN_TRUE"; then :
    2807628137
     
    2819528256
    2819628257fi
     28258if test -z "$HAS_JSDOC_TRUE"; then :
     28259  { $as_echo "$as_me:${as_lineno-$LINENO}:  jsdoc:         build JavaScript documentation with jsdoc" >&5
     28260$as_echo "$as_me:  jsdoc:         build JavaScript documentation with jsdoc" >&6;}
     28261
     28262fi
    2819728263{ $as_echo "$as_me:${as_lineno-$LINENO}:  man:           build all buildable documentation" >&5
    2819828264$as_echo "$as_me:  man:           build all buildable documentation" >&6;}
     
    2826728333
    2826828334fi
     28335if test -z "$HAS_JSDOC_TRUE"; then :
     28336  else
     28337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  JavaScript documentation disabled!" >&5
     28338$as_echo "$as_me: WARNING:  JavaScript documentation disabled!" >&2;}
     28339fi
    2826928340if test -z "$HAS_SQL_TRUE"; then :
    2827028341  else
  • trunk/FACT++/configure.ac

    r14048 r14628  
    343343AC_CHECK_PROG(PS2PDF,    ps2pdf,       yes, no)
    344344AC_CHECK_PROG(HELP2MAN,  help2man,     yes, no)
     345AC_CHECK_PROG(JSDOC,     jsdoc,        yes, no)
    345346
    346347##########################################################################
     
    373374AM_CONDITIONAL(HAS_PS2PDF,    [test "$PS2PDF" = yes])
    374375AM_CONDITIONAL(HAS_HELP2MAN,  [test "$HELP2MAN" = yes])
     376AM_CONDITIONAL(HAS_JSDOC,     [test "$JSDOC" = yes])
    375377AM_CONDITIONAL(HAS_DOXYGEN,   [test "$DX_DOXYGEN"])
    376378AM_CONDITIONAL(HAS_DOT,       [test "$DX_DOT"])
     
    492494   AC_MSG_NOTICE([ colored svn diff       / 'colordiff'        found: no])
    493495)
     496AM_COND_IF(HAS_JSDOC,
     497   AC_MSG_NOTICE([ JavaScript docu        / 'jsdoc'            found: yes]),
     498   AC_MSG_NOTICE([ JavaScript docu        / 'jsdoc'            found: no])
     499)
    494500AM_COND_IF(HAS_HELP2MAN,[
    495501   AC_MSG_NOTICE([ man-pages enabled      / 'help2man'         found: $HELP2MAN])
     
    554560   AC_MSG_NOTICE([ doxygen-doc:   build html and pdf documentation with doxygen])
    555561)
     562AM_COND_IF(HAS_JSDOC,
     563   AC_MSG_NOTICE([ jsdoc:         build JavaScript documentation with jsdoc])
     564)
    556565AC_MSG_NOTICE([ man:           build all buildable documentation])
    557566AC_MSG_NOTICE()
     
    583592      AC_MSG_WARN([ Either of the necessary packages not found - viewer GUI disabled!])
    584593)
     594AM_COND_IF(HAS_JSDOC,,   AC_MSG_WARN([ JavaScript documentation disabled!]))
    585595AM_COND_IF(HAS_SQL,,     AC_MSG_WARN([ database support globally disabled!]))
    586596AM_COND_IF(HAS_NOVA,,    AC_MSG_WARN([ libnova missing - smartfact will be compiles without astronomy support!]))
Note: See TracChangeset for help on using the changeset viewer.