Skip to content

Commit

Permalink
Package .md files (README + WHATSNEW) as .txt
Browse files Browse the repository at this point in the history
  • Loading branch information
protich committed Feb 14, 2013
1 parent 45eae75 commit 38a1d20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/cli/package.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ function package($pattern, $destination, $recurse=false, $exclude=false) {
# Load the license and documentation
package("*.{txt,md}", "");

#Rename markdown as text TODO: Do html version before rename.
if(($mds = glob("$stage_path/*.md"))) {
foreach($mds as $md)
rename($md, preg_replace('/\.md$/', '.txt', $md));
}

# Make an archive of the stage folder
$version_info = preg_grep('/THIS_VERSION/',
explode("\n", file_get_contents("$root/main.inc.php")));
Expand Down

0 comments on commit 38a1d20

Please sign in to comment.