summaryrefslogtreecommitdiff
path: root/new-doc
diff options
context:
space:
mode:
Diffstat (limited to 'new-doc')
-rwxr-xr-xnew-doc27
1 files changed, 2 insertions, 25 deletions
diff --git a/new-doc b/new-doc
index b11ac79..74aea1e 100755
--- a/new-doc
+++ b/new-doc
@@ -69,28 +69,5 @@ done
ln -s "${docname//+([^\/])/..}"/../templates/du2html.xsl "$docname"/
-for tag in "${tags[@]}"; do
- if [[ ! -d "tags/$tag" ]]; then
- mkdir -p "tags/$tag"
- for lang in $langs; do
- {
- cat <<EOF
-${tag//?/=}
-$tag
-${tag//?/=}
-:CreationDate: $now
-
-[% PROCESS 'document-listing.tt' %]
-EOF
- } > "tags/$tag/document.${lang}.rest.tt"
- {
- cat <<EOF
-[% INCLUDE 'base-feed.tt' %]
-EOF
- } > "tags/$tag/feed.${lang}.tt"
- done
- for f in document-listing.tt du2html.xsl fillFeed.xsl base-feed.tt; do
- ln -s "${tag//+([^\/])/../..}"/../templates/"$f" "tags/$tag/"
- done
- fi
-done
+cd "$(dirname "$0")"
+./new-tag "${tags[@]}"