Files
build-web-application-with-…/genepub.sh
2012-10-28 09:06:50 +08:00

18 lines
327 B
Bash

#!/bin/sh
if [ ! -f build-web-application-with-golang ];then
go build
fi
if [ ! -d tmp ];then
mkdir tmp
fi
cd tmp
cp ../*.md .
for i in *.md;do
sed -i '/^[#]\{1,\}/s!^\([#]\{1,\}\)\([^#]\{1,\}\)!\1 \2!' $i
sed -i '/!\[\](images/s#images\(.*\)?raw=true#../Images\1#' $i
done
../build-web-application-with-golang
rm *.md