Skip to content
Snippets Groups Projects
Commit 38a1d200 authored by Peter Rotich's avatar Peter Rotich
Browse files

Package .md files (README + WHATSNEW) as .txt

parent 45eae752
Branches
Tags
No related merge requests found
...@@ -115,6 +115,12 @@ package("setup/inc/sql/*.{sql,md5}", "upload/setup/inc/sql", -1); ...@@ -115,6 +115,12 @@ package("setup/inc/sql/*.{sql,md5}", "upload/setup/inc/sql", -1);
# Load the license and documentation # Load the license and documentation
package("*.{txt,md}", ""); 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 # Make an archive of the stage folder
$version_info = preg_grep('/THIS_VERSION/', $version_info = preg_grep('/THIS_VERSION/',
explode("\n", file_get_contents("$root/main.inc.php"))); explode("\n", file_get_contents("$root/main.inc.php")));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment