LearnOpenGL

Translation in progress of learnopengl.com.
git clone https://git.mtkn.jp/LearnOpenGL
Log | Files | Refs

update (390B)


      1 #!/bin/sh
      2 cd $(dirname $0)/..
      3 
      4 # apply template to html files
      5 find man -type f | grep html$ | sed 's;^man/;;' | 
      6 	xargs -I@ sh -c 'f=@; mkdir -p pub/$(dirname $f); sed -n "/<\!--content-->/!p; /<\!--content-->/r man/@" templates/base.html > pub/@'
      7 
      8 # copy non-html files
      9 find man -type f | grep -v html$ | sed 's;^man/;;' | xargs -I@ sh -c 'f=@; mkdir -p pub/$(dirname $f); cp man/@ pub/@'