diff options
| author | Théo Zimmermann | 2020-01-17 19:37:58 +0100 |
|---|---|---|
| committer | Théo Zimmermann | 2020-01-17 19:37:58 +0100 |
| commit | 1f3ad4f8ebbf48d68488d19335d3c2db18e248f4 (patch) | |
| tree | 349f615d456252c593e4a0512de732c914fa9903 /doc/stdlib/make-library-index | |
| parent | 58a9fa018995aa59e30bb7156a6c91b640f88730 (diff) | |
| parent | c3cf1451e6a07a30f58b5704474b19ce7feb1afa (diff) | |
Merge PR #11413: [doc] [ltac2] Build Ltac2 documentation
Reviewed-by: Zimmi48
Diffstat (limited to 'doc/stdlib/make-library-index')
| -rwxr-xr-x | doc/stdlib/make-library-index | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/stdlib/make-library-index b/doc/stdlib/make-library-index index bea6f24098..732f15b78a 100755 --- a/doc/stdlib/make-library-index +++ b/doc/stdlib/make-library-index @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # Instantiate links to library files in index template @@ -8,9 +8,14 @@ HIDDEN=$2 cp -f $FILE.template tmp echo -n "Building file index-list.prehtml... " -LIBDIRS=`find theories/* plugins/* -type d ! -name .coq-native` +LIBDIRS=`find theories/* plugins/* user-contrib/* -type d ! -name .coq-native` for k in $LIBDIRS; do + if [[ $k =~ "user-contrib" ]]; then + BASE_PREFIX="" + else + BASE_PREFIX="Coq." + fi d=`basename $k` ls $k | grep -q \.v'$' if [ $? = 0 ]; then @@ -26,7 +31,7 @@ for k in $LIBDIRS; do echo Error: $FILE and $HIDDEN both mention $k/$b.v; exit 1 else p=`echo $k | sed 's:^[^/]*/::' | sed 's:/:.:g'` - sed -e "s:$k/$b.v:<a href=\"Coq.$p.$b.html\">$b</a>:g" tmp > tmp2 + sed -e "s:$k/$b.v:<a href=\"$BASE_PREFIX$p.$b.html\">$b</a>:g" tmp > tmp2 mv -f tmp2 tmp fi else |
