Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
76f82f20
Commit
76f82f20
authored
May 24, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the script to build the zip/tgz
parent
281a3c1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
4 deletions
+78
-4
.gitignore
.gitignore
+4
-3
bin/build
bin/build
+73
-0
bin/compile
bin/compile
+1
-1
No files found.
.gitignore
View file @
76f82f20
phpunit.xml
/phpunit.xml
silex.phar
/vendor
vendor
/build
bin/build
0 → 100755
View file @
76f82f20
#!/bin/sh
PHP
=
`which php`
GIT
=
`which git`
DIR
=
`$PHP -r "echo dirname(dirname(realpath('$0')));"`
if
[
!
-
d
"
$DIR
/build"
];
then
mkdir
-
p
$DIR
/
build
fi
cd
$DIR
/
build
if
[
!
-
f
"composer.phar"
];
then
curl
-
s
http
://
getcomposer
.
org
/
installer
2
>/
dev
/
null
|
$PHP
>/
dev
/
null
2
>/
dev
/
null
else
$PHP
composer
.
phar
self
-
update
>/
dev
/
null
2
>/
dev
/
null
fi
if
[
!
-
d
"
$DIR
/build/skeleton"
];
then
mkdir
-
p
$DIR
/
build
/
skeleton
fi
cd
"
$DIR
/build/skeleton"
cat
-
<<
EOF
>
composer
.
json
{
"require"
:
{
"silex/silex"
:
"dev-master"
}
}
EOF
mkdir
-
p
web
/
cat
-
<<
EOF
>
web
/
index
.
php
<?
php
require_once
__DIR__
.
'/../vendor/autoload.php'
;
\
$app
=
new
Silex
\
\Application
();
\
$app
->
get
(
'/hello'
,
function
()
{
return
'Hello!'
;
});
\
$app
->
run
();
EOF
$PHP
../
composer
.
phar
install
-
q
if
[
-
d
"
$DIR
/build/tmp/silex"
];
then
rm
-
rf
$DIR
/
build
/
tmp
/
silex
fi
mkdir
-
p
$DIR
/
build
/
tmp
/
silex
cd
"
$DIR
/build/tmp/silex"
cp
-
r
../../
skeleton
/*
.
find
.
-
name
.
DS_Store
|
xargs
rm
-
rf
-
find
.
-
name
.
git
|
xargs
rm
-
rf
-
find
.
-
name
phpunit
.
xml
.*
|
xargs
rm
-
rf
-
find
.
-
type
d
-
name
Tests
|
xargs
rm
-
rf
-
find
.
-
type
d
-
name
tests
|
xargs
rm
-
rf
-
find
.
-
type
d
-
name
doc
|
xargs
rm
-
rf
-
export
COPY_EXTENDED_ATTRIBUTES_DISABLE
=
true
export
COPYFILE_DISABLE
=
true
cd
"
$DIR
/build/tmp"
tar
zcpf
"
$DIR
/build/silex.tgz"
silex
rm
-
f
"
$DIR
/build/silex.zip"
zip
-
rq
"
$DIR
/build/silex.zip"
silex
rm
-
rf
"
$DIR
/build/tmp"
compile
→
bin/
compile
View file @
76f82f20
#!/usr/bin/env php
#!/usr/bin/env php
<?php
<?php
require_once
__DIR__
.
'/vendor/autoload.php'
;
require_once
__DIR__
.
'/
../
vendor/autoload.php'
;
use
Silex\Compiler\Util
;
use
Silex\Compiler\Util
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment