mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-09 04:12:51 +00:00
19 lines
448 B
Bash
19 lines
448 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
OUTPUT=$1
|
||
|
INPUT=$2
|
||
|
|
||
|
for file in $INPUT/*.coffee; do
|
||
|
|
||
|
# Omit this unecessary files
|
||
|
if [ `basename "$file"` == 'index.coffee' ] || [ `basename "$file"` == 'command-options.coffee' ]; then
|
||
|
continue
|
||
|
fi
|
||
|
|
||
|
filename=`basename "${file%.*}"`
|
||
|
output=$OUTPUT/$filename
|
||
|
mkdir -p $output
|
||
|
./node_modules/coffee-script/bin/coffee extras/capitano-doc/index.coffee markdown "$file" "$output"
|
||
|
echo "[CapitanoDoc] Processed $file to $output"
|
||
|
done
|