Factor out script to build index.hdr

As part of factoring out the documentation building parts of the fish
build, add a new file build_index_hdr.sh that builds the index.hdr
file. Invoke it from both the Makefile and CMake build.
This commit is contained in:
ridiculousfish
2017-10-04 21:20:32 -07:00
parent 088450cbf5
commit baba19c180
3 changed files with 26 additions and 8 deletions

5
build_tools/build_index_hdr.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
TOC_TXT=$1
env awk "{if (\$0 ~ /@toc@/){ system(\"cat ${TOC_TXT}\");} else{ print \$0;}}"