Skip to content

Commit 053fc5d

Browse files
committed
Add script to install Codeigniter Matches CLI
1 parent 14c186d commit 053fc5d

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@ codeigniter/
3535
$ composer create-project kenjis/codeigniter-composer-installer codeigniter
3636
```
3737

38+
#### Optional
39+
3840
If you want to install translations for system messages (requires shell):
3941

4042
```
4143
$ bin/install-translations.sh
4244
```
4345

46+
If you want to install Codeigniter Matches CLI (requires shell):
47+
48+
```
49+
$ bin/install-codeigniter-matches-cli.sh
50+
```
51+
4452
### Run PHP built-in server (PHP 5.4 or later)
4553

4654
```
@@ -57,6 +65,12 @@ $ composer update
5765

5866
You must update files manually if files in `application` folder or `index.php` change.
5967

68+
## Reference
69+
70+
* [CodeIgniter](https://github.com/bcit-ci/CodeIgniter)
71+
* [Translations for CodeIgniter System](https://github.com/bcit-ci/codeigniter3-translations)
72+
* [Codeigniter Matches CLI](https://github.com/avenirer/codeigniter-matches-cli)
73+
6074
## Related
6175

6276
* [Cli for CodeIgniter 3.0](https://github.com/kenjis/codeigniter-cli)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
3+
## Part of CodeIgniter Composer Installer
4+
##
5+
## @author Kenji Suzuki <https://github.com/kenjis>
6+
## @license MIT License
7+
## @copyright 2015 Kenji Suzuki
8+
## @link https://github.com/kenjis/codeigniter-composer-installer
9+
10+
cd `dirname $0`
11+
12+
user="avenirer"
13+
repos="codeigniter-matches-cli"
14+
15+
if [ $# -eq 0 ]; then
16+
echo "Install Codeigniter Matches CLI ($user/$repos)"
17+
echo " usage: $0 <branch>"
18+
echo " eg: $0 master"
19+
exit
20+
fi
21+
22+
version="$1"
23+
zip="tmp-$$.zip"
24+
25+
curl -L -o "$zip" "https://github.com/$user/$repos/archive/$version.zip"
26+
unzip "$zip"
27+
28+
OS=`uname`
29+
if [ "$OS" = "Darwin" ]; then
30+
cp -rf "$repos-$version/config/" ../application/config/
31+
cp -rf "$repos-$version/controllers/" ../application/controllers/
32+
cp -rf "$repos-$version/views/" ../application/third_party/
33+
else
34+
cp -rf "$repos-$version/config/" -T ../application/config/
35+
cp -rf "$repos-$version/controllers/" -T ../application/controllers/
36+
cp -rf "$repos-$version/views/" -T ../application/third_party/
37+
fi
38+
39+
rm "$zip"
40+
rm -rf "$repos-$version"

0 commit comments

Comments
 (0)