mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-07-04 15:05:19 +02:00
LDoc: move config & script into .ldoc directory
This commit is contained in:
parent
dedc0a4f3d
commit
f9182d8974
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
.* export-ignore
|
13
.ldoc/gendoc.sh
Normal file
13
.ldoc/gendoc.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
d_ldoc="$(dirname $(readlink -f $0))"
|
||||
d_root="$(dirname ${d_ldoc})"
|
||||
d_docs="${d_root}/docs"
|
||||
f_config="${d_ldoc}/config.ld"
|
||||
|
||||
cd "${d_root}"
|
||||
|
||||
# Clean old files
|
||||
rm -rf "${d_docs}/api.html" "${d_docs}/scripts" "${d_docs}/modules" "${d_docs}/source"
|
||||
# Create new files
|
||||
ldoc -c "${f_config}" -d "${d_docs}" -o "api" "${d_root}"
|
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCS="$(dirname $(readlink -f $0))"
|
||||
ROOT="$(dirname ${DOCS})"
|
||||
CONFIG="${DOCS}/config.ld"
|
||||
|
||||
cd "${ROOT}"
|
||||
|
||||
# Clean old files
|
||||
rm -rf "${DOCS}/api.html" "${DOCS}/scripts" "${DOCS}/modules" "${DOCS}/source"
|
||||
# Create new files
|
||||
ldoc -c "${CONFIG}" -d "${DOCS}" -o "api" "${ROOT}"
|
Loading…
Reference in New Issue
Block a user