Skip to content

Commit

Permalink
[INTERNAL] split markdown.css in prepare_vscode_tree.sh
Browse files Browse the repository at this point in the history
Progress #6
  • Loading branch information
GehDoc committed Nov 26, 2019
1 parent beaed5b commit 192ee38
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/prepare_vscode_tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,16 @@ function process_dir_src() {
if [ "$dirname" != ".." ]; then
if echo $file | egrep -iq "markdown[a-z]*.[a-z]+$" ; then
target="${file/markdown/textile}"
mv $destfile $DEST_DIR/$target

if [ "$target" = "./media/textile.css" ]; then
# main CSS file should be splitted in 2
target_end="./media/textile-theming.css"
{ sed -n '/body.wordWrap pre {/q;p'; cat > $DEST_DIR/$target_end; } <$destfile >$DEST_DIR/$target
sed -i '1ibody.wordWrap pre {' $DEST_DIR/$target_end
rm $destfile
else
mv $destfile $DEST_DIR/$target
fi
fi
fi
let processed++
Expand Down

0 comments on commit 192ee38

Please sign in to comment.