Advertisement
Xliff

Untitled

Apr 5th, 2019
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/sh
  2. install -d doc/Net/Telnet
  3. for a in `find . \( -name doc -prune \) -o -name \*.pm6`; do
  4.     echo $a
  5.     perl6 -Ilib --doc=Markdown $a > doc/`echo $a | perl6 -e '$_=lines[0]; say .split("/")[2..*].join("/")'`
  6. done
  7. for a in `find doc -name \*.pm6`; do
  8.     mv $a `dirname $a`/`basename $a .pm6`.md
  9. done
  10. find doc -size -50c -type f -exec rm {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement