Skip to content

Commit

Permalink
adjust file structures as a standard PECL repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chobie committed Jan 13, 2012
1 parent 97b5c06 commit 6b10deb
Show file tree
Hide file tree
Showing 111 changed files with 51 additions and 61 deletions.
76 changes: 38 additions & 38 deletions .gitignore
@@ -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*

28 changes: 9 additions & 19 deletions Rakefile
@@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions conformance_test/Markdown.sh
@@ -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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions test/Markdown.sh

This file was deleted.

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.

0 comments on commit 6b10deb

Please sign in to comment.