Skip to content

Commit

Permalink
完善打包程序
Browse files Browse the repository at this point in the history
  • Loading branch information
bg5sbk committed Dec 13, 2013
1 parent d84425d commit 7b757a7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php
$version = '1.1';
if ($argc != 2) {
echo "必须指定版本号";
exit;
}

$version=$argv[1];

$dirs = array(
".",
);
Expand All @@ -9,7 +15,7 @@
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>MiniCMS V1.1安装程序</title>
<title>MiniCMS安装程序</title>
<style>
* {padding:0;margin:0;font-family:"Microsoft YaHei",Segoe UI,Tahoma,Arial,Verdana,sans-serif;}
html,body { height:100%; }
Expand Down Expand Up @@ -136,7 +142,7 @@ function build($dirs) {
if ($dh = opendir($dir)) {
$sub_dirs = array();
while (($item = readdir($dh)) !== false) {
if ($item[0] == '.')
if ($item[0] == '.' || ($dir == "." && $item == "build.php"))
continue;

$file = $dir."/".$item;
Expand Down

0 comments on commit 7b757a7

Please sign in to comment.