浏览代码

Added auto-rename.

xaav 14 年之前
父节点
当前提交
8d1d88c596
共有 2 个文件被更改,包括 15 次插入12 次删除
  1. 11 12
      README.md
  2. 4 0
      bin/vendors

+ 11 - 12
README.md

@@ -1,12 +1,11 @@
-Packagist
-=========
-
-Package Repository Website for Composer
-
-Installation
-------------
-
-- Clone the repository
-- Run `bin/vendors install` to get all the vendors.
-- Copy `app/config/parameters.ini.dist` to `app/config/parameters.ini` and edit
-  relevant values for your setup.
+Packagist
+=========
+
+Package Repository Website for Composer
+
+Installation
+------------
+
+- Clone the repository
+- Run `bin/vendors install` to get all the vendors.
+- Open `app/config/parameters.ini` and edit the relevant values for your setup.

+ 4 - 0
bin/vendors

@@ -36,6 +36,10 @@ if (!is_dir($vendorDir)) {
     mkdir($vendorDir, 0777, true);
     mkdir($vendorDir, 0777, true);
 }
 }
 
 
+if (!file_exists($rootDir.'/app/config/parameters.ini')) {
+    copy($rootDir.'/app/config/parameters.ini.dist', $rootDir.'/app/config/parameters.ini');
+}
+
 // versions
 // versions
 $versions = array();
 $versions = array();
 if ('install' === $command && file_exists($rootDir.'/deps.lock')) {
 if ('install' === $command && file_exists($rootDir.'/deps.lock')) {