You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
export EXAMPLE=$1
|
|
export EXNAME=`echo ${EXAMPLE} |cut -c 3-`
|
|
cd examples; \
|
|
install -d dirname ${EXAMPLE}
|
|
echo "# ${EXNAME}\n\`\`\` c++\n" > ${EXAMPLE}.md
|
|
cat ../../examples/${EXAMPLE} >> ${EXAMPLE}.md
|
|
echo "\n\`\`\`" >> ${EXAMPLE}.md
|
|
|
|
|