Permalink
Browse files

adjust file structures as a standard PECL repo

  • Loading branch information...
1 parent 97b5c06 commit 6b10debfcd92722b529494919d7295c2742c998d @chobie committed Jan 13, 2012
Showing with 51 additions and 61 deletions.
  1. +38 −38 .gitignore
  2. +9 −19 Rakefile
  3. 0 {src → }/config.m4
  4. 0 {src → }/config.w32
  5. 0 {test → conformance_test}/Markdown.php
  6. +4 −0 conformance_test/Markdown.sh
  7. 0 {test → conformance_test}/MarkdownTest_1.0.3/MarkdownTest.pl
  8. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Amps and angle encoding.html
  9. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Amps and angle encoding.text
  10. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Auto links.html
  11. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Auto links.text
  12. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Backslash escapes.html
  13. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Backslash escapes.text
  14. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.html
  15. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.text
  16. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Code Blocks.html
  17. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Code Blocks.text
  18. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Code Spans.html
  19. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Code Spans.text
  20. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.html
  21. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.text
  22. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Horizontal rules.html
  23. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Horizontal rules.text
  24. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).html
  25. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).text
  26. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).html
  27. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).text
  28. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML comments.html
  29. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Inline HTML comments.text
  30. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, inline style.html
  31. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, inline style.text
  32. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, reference style.html
  33. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, reference style.text
  34. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, shortcut references.html
  35. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Links, shortcut references.text
  36. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Literal quotes in titles.html
  37. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Literal quotes in titles.text
  38. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.html
  39. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.text
  40. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.html
  41. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.text
  42. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Nested blockquotes.html
  43. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Nested blockquotes.text
  44. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.html
  45. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.text
  46. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Strong and em together.html
  47. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Strong and em together.text
  48. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Tabs.html
  49. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Tabs.text
  50. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Tidyness.html
  51. 0 {test → conformance_test}/MarkdownTest_1.0.3/Tests/Tidyness.text
  52. 0 {test → conformance_test}/MarkdownTest_1.0/MarkdownTest.pl
  53. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Amps and angle encoding.html
  54. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Amps and angle encoding.text
  55. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Auto links.html
  56. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Auto links.text
  57. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Backslash escapes.html
  58. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Backslash escapes.text
  59. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Blockquotes with code blocks.html
  60. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Blockquotes with code blocks.text
  61. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Hard-wrapped paragraphs with list-like lines.html
  62. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Hard-wrapped paragraphs with list-like lines.text
  63. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Horizontal rules.html
  64. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Horizontal rules.text
  65. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML (Advanced).html
  66. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML (Advanced).text
  67. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML (Simple).html
  68. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML (Simple).text
  69. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML comments.html
  70. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Inline HTML comments.text
  71. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Links, inline style.html
  72. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Links, inline style.text
  73. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Links, reference style.html
  74. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Links, reference style.text
  75. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Literal quotes in titles.html
  76. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Literal quotes in titles.text
  77. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Markdown Documentation - Basics.html
  78. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Markdown Documentation - Basics.text
  79. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Markdown Documentation - Syntax.html
  80. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Markdown Documentation - Syntax.text
  81. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Nested blockquotes.html
  82. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Nested blockquotes.text
  83. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Ordered and unordered lists.html
  84. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Ordered and unordered lists.text
  85. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Strong and em together.html
  86. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Strong and em together.text
  87. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Tabs.html
  88. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Tabs.text
  89. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Tidyness.html
  90. 0 {test → conformance_test}/MarkdownTest_1.0/Tests/Tidyness.text
  91. 0 { → docs}/ExtensionsAndRenderFlags.md
  92. 0 { → docs}/Render.md
  93. 0 {src → }/php_sundown.c
  94. 0 {src → }/php_sundown.h
  95. 0 {src → }/render_base.c
  96. 0 {src → }/render_html.c
  97. 0 {src → }/render_xhtml.c
  98. 0 {src → }/sundown_markdown.c
  99. +0 −4 test/Markdown.sh
  100. 0 {src → }/tests/001.phpt
  101. 0 {src → }/tests/002-basic-constructor-arguments.phpt
  102. 0 {src → }/tests/002-basic-to_html.phpt
  103. 0 {src → }/tests/002-constructor-arguments.phpt
  104. 0 {src → }/tests/003-advanced-constructor.phpt
  105. 0 {src → }/tests/003-advanced-render-html-block_code.phpt
  106. 0 {src → }/tests/003-advanced-render-html-block_html.phpt
  107. 0 {src → }/tests/003-advanced-render-html-block_quote.phpt
  108. 0 {src → }/tests/003-advanced-render-html-header.phpt
  109. 0 {src → }/tests/003-advanced-render-html-list.phpt
  110. 0 {src → }/tests/003-advanced-render-html-paragraph.phpt
  111. 0 {src → }/tests/003-to_html.phpt
View
@@ -1,44 +1,44 @@
*.o
# ignore sundown sources.
-src/autolink.c
-src/autolink.h
-src/buffer.c
-src/buffer.h
-src/houdini.h
-src/houdini_href_e.c
-src/houdini_html_e.c
-src/html.c
-src/html.h
-src/html_blocks.h
-src/html_smartypants.c
-src/stack.c
-src/stack.h
-src/markdown.c
-src/markdown.h
+autolink.c
+autolink.h
+buffer.c
+buffer.h
+houdini.h
+houdini_href_e.c
+houdini_html_e.c
+html.c
+html.h
+html_blocks.h
+html_smartypants.c
+stack.c
+stack.h
+markdown.c
+markdown.h
# ignore phpized files
-src/Makefile.global
-src/acinclude.m4
-src/aclocal.m4
-src/autom4te.cache
-src/build
-src/config.*
-src/configure
-src/configure*
-src/install-sh
-src/iltmain.sh
-src/missing
-src/mkinstalldirs
-src/run-tests.php
-src/*.lo
-src/.deps
-src/.libs
-src/libtool
-src/Makefile*
-src/modules
-src/ltmain.sh
-src/*.la
-src/tmp-php.ini
-src/php_test_results*
+Makefile.global
+acinclude.m4
+aclocal.m4
+autom4te.cache
+build
+config.*
+configure
+configure*
+install-sh
+iltmain.sh
+missing
+mkinstalldirs
+run-tests.php
+*.lo
+.deps
+.libs
+libtool
+Makefile*
+modules
+ltmain.sh
+*.la
+tmp-php.ini
+php_test_results*
View
@@ -1,37 +1,29 @@
desc "compile php-sundown"
task :compile => ['sundown/src/markdown.h'] do
- Dir.chdir("src") do
- sh "phpize"
- sh "./configure"
- sh "make"
- end
+ sh "phpize"
+ sh "./configure"
+ sh "make"
end
desc "install php-sundown to your php"
task :install => [:compile] do
- Dir.chdir("src") do
- sh "make install"
- end
+ sh "make install"
end
task :clean do
- Dir.chdir("src") do
- sh "phpize --clean"
- end
+ sh "phpize --clean"
end
desc "run php test cases"
task :test do
- Dir.chdir("src") do
- ENV["TESTS"] = "--show-diff -q"
- sh "make test"
- end
+ ENV["TESTS"] = "--show-diff -q"
+ sh "make test"
end
desc "Run conformance tests"
task "test:conformance" do
- Dir.chdir("test") do
+ Dir.chdir("conformance_test") do
script = "#{pwd}/Markdown.sh"
Dir.chdir("MarkdownTest_1.0.3") do
sh "./MarkdownTest.pl --script='#{script}' --tidy"
@@ -48,7 +40,7 @@ task :gather => 'sundown/src/markdown.h' do |t|
'sundown/html/{html,html_smartypants,houdini_html_e,houdini_href_e}.c',
'sundown/html/{html,houdini}.h',
]
- cp files, 'src/',
+ cp files, './',
:preserve => true,
:verbose => true
end
@@ -57,8 +49,6 @@ file 'sundown/src/markdown.h' do |t|
abort "The Sundown submodule is required."
end
-
-
task :submodule do
sh "git submodule init"
sh "git submodule update"
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,4 @@
+#/usr/bin/bash
+PHP=`which php`
+PWD=`pwd`
+$PHP -n -d extension=$PWD/../../modules/sundown.so $PWD/../Markdown.php "$1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,4 +0,0 @@
-#/usr/bin/bash
-PHP=`which php`
-PWD=`pwd`
-$PHP -n -d extension=$PWD/../../src/modules/sundown.so $PWD/../Markdown.php "$1"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6b10deb

Please sign in to comment.