From e9798950063d9849083faedd402a0b1e6dcc92ca Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 10:43:12 +0800 Subject: [PATCH 1/6] fix build --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9de9256d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php + +php: + - 5.5 + - 5.4 + - 5.3 + - 5.2 + +jdk: + - openjdk7 + +install: make get-deps +script: cd ./tools/ && make all + From f6f35f221dccb567c37e8470b01bcacc0d60b26a Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 10:51:03 +0800 Subject: [PATCH 2/6] fix build env --- .travis.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9de9256d..a7904937 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,6 @@ php: - 5.5 - 5.4 - 5.3 - - 5.2 -jdk: - - openjdk7 - -install: make get-deps script: cd ./tools/ && make all From 81a99eb92310f8dd9af3031571dfbb9e562d83b7 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 11:59:17 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0makefile=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E9=BB=98=E8=AE=A4=E7=9A=84readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ tools/Makefile | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..418a176c --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Typecho Blogging Platform +========================= + +Please visit http://typecho.org for more information. diff --git a/tools/Makefile b/tools/Makefile index 548f7f29..61deef9b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,6 +12,7 @@ update: git clone https://github.com/typecho/typecho-replica.git build rm -Rf build/.git rm -Rf build/.gitignore + rm -Rf build/.gitattributes for i in `find build/ -name '*.css'`; do echo $$i && java -Xmx32m -jar yuicompressor-2.4.2.jar $$i --charset UTF-8 -o $$i; done; for i in `find build/admin/js/ -name '*.js'`; do echo $$i && java -Xmx32m -jar yuicompressor-2.4.2.jar $$i --charset UTF-8 -o $$i; done; for i in `find build/ -name '*.php'`; do php -l $$i; done; @@ -21,6 +22,9 @@ package: @echo 'package' rm -Rf build/tools/ rm -Rf build/todo.txt + rm -Rf build/changelog.txt + rm -Rf build/.travis.yml + rm -Rf build/README.md rm -Rf build/admin/scss rm -Rf build/admin/img/editor rm -Rf build/admin/img/icons @@ -61,6 +65,9 @@ install: make update rm -Rf build/tools/ rm -Rf build/todo.txt + rm -Rf build/changelog.txt + rm -Rf build/.travis.yml + rm -Rf build/README.md rm -Rf build/admin/scss rm -Rf build/admin/img/editor rm -Rf build/admin/img/icons From d2ed2217c78d886246112934e2d414227ac92e35 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 12:29:26 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=88=A0=E6=8E=89=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/Makefile | 15 --------------- tools/mcecp.php | 38 -------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 tools/mcecp.php diff --git a/tools/Makefile b/tools/Makefile index 61deef9b..05c42c50 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -56,11 +56,6 @@ theme: make clear -typecho: - for i in `php list.php "build/var/Typecho/"`; do php tc.php "in=$$i&out=build/var/Typecho.php"; done; - rm -Rf build/var/Typecho/ - - install: make update rm -Rf build/tools/ @@ -78,16 +73,6 @@ install: make clear -tinymce: - wget http://prdownloads.sourceforge.net/tinymce/tinymce_${TINYMCE}.zip?download - unzip tinymce_${TINYMCE}.zip - for i in `find tinymce/jscripts/ -name '*.js'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done; - for i in `find tinymce/jscripts/ -name '*.htm'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done; - rm -Rf tinymce/ - rm -Rf tinymce_${TINYMCE}.zip - svn ci ../usr/plugins/TinyMCE/tiny_mce/ -m "upgrade tiny_mce to ${TINYMCE}" - - all: make update make package diff --git a/tools/mcecp.php b/tools/mcecp.php deleted file mode 100644 index 7f5ea8df..00000000 --- a/tools/mcecp.php +++ /dev/null @@ -1,38 +0,0 @@ - Date: Fri, 13 Dec 2013 12:36:01 +0800 Subject: [PATCH 5/6] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 418a176c..69fcb177 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,15 @@ Typecho Blogging Platform ========================= -Please visit http://typecho.org for more information. +####Homepage +http://typecho.org/ + +####Document +http://docs.typecho.org/ + +####Forum +http://forum.typecho.org/ + +####Download +http://typecho.org/download + From 718f36caa3f27d9fa43e44b04b1f00e155f421ed Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 15:32:49 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=96=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/manage-comments.php | 4 ++-- admin/manage-medias.php | 4 ++-- admin/manage-metas.php | 4 ++-- admin/manage-pages.php | 2 +- admin/manage-posts.php | 4 ++-- admin/manage-users.php | 4 ++-- install.php | 9 ++------- install/Mysql.php | 4 ++-- install/Pgsql.php | 4 ++-- usr/themes/default/comments.php | 2 +- var/Widget/Options/Discussion.php | 8 ++++---- var/Widget/Options/General.php | 2 +- var/Widget/Options/Permalink.php | 21 ++++++++++++--------- var/Widget/Options/Reading.php | 10 +++++----- var/Widget/Users/Edit.php | 20 ++++++++++---------- var/Widget/Users/Profile.php | 16 ++++++++-------- 16 files changed, 58 insertions(+), 60 deletions(-) diff --git a/admin/manage-comments.php b/admin/manage-comments.php index b80ca9e4..eb979418 100644 --- a/admin/manage-comments.php +++ b/admin/manage-comments.php @@ -50,7 +50,7 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ
- +