root/freepbx/branches/2.3/setup_svn.php

Revision 5118, 1.7 kB (checked in by p_lindheimer, 1 year ago)

Merged revisions 5117 via svnmerge from
http://svn.freepbx.org/freepbx/trunk

........

r5117 | p_lindheimer | 2007-10-10 13:04:04 -0700 (Wed, 10 Oct 2007) | 1 line


change svn URL in setup_svn.php to reflect new repository

........

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/usr/bin/php -q
2 <?php
3
4 /** setup_svn.php
5  *
6  *  The purpose of this function is to install all the modules associated with a particular FreePBX version
7  *  under the same path as install_amp. The setup will be similar to how modules are packaged with the
8  *  tarballs when distributed. There are a handful of files that disapear and a few that appear as a
9  *  result of this technique, but all of those files are associated with the packaging of distros and
10  *  not the actual functioning of FreePBX.
11  *
12  *  You can not publish modules from a tree like this. However, you can do svn udpates from the top level
13  *  and then reinstall, and you can make changes in place and do 'svn ci' commands to get them back into
14  *  svn. You will require a 'properly' setup svn pull of the module tree in order to do the final publishing.
15  *
16  *  however, you can use this mode in conjunction with the --make-links-devel install option to get all of your
17  *  modules sym-linked to their final place to make development easier.
18  *
19  */
20 $VERSION = "2.3";
21
22 $NORMAL_URL =  "http://svn.freepbx.org/freepbx/branches/$VERSION/amp_conf/htdocs/admin/modules";
23 $MODULE_URL  = "http://svn.freepbx.org/modules/branches/$VERSION";
24 $MODULE_PATH = "./amp_conf/htdocs/admin/modules";
25
26 if (isset($argv[1]) && strtolower($argv[1]) == "restore") {
27         system("svn switch $NORMAL_URL $MODULE_PATH");
28 } else {
29         system("svn switch $MODULE_URL $MODULE_PATH");
30 }
31
32
33 /*
34 exec("svn list $MODULE_URL", $modules, $ret);
35
36 if ($ret) {
37         echo "ERROR: svn list returned: $ret\n";
38         exit;
39 } else {
40
41         foreach ($modules as $module) {
42                 echo "Checking out $module to $MODULE_PATH/$module\n";
43                 system("svn co $MODULE_URL/$module $MODULE_PATH/$module");
44         }
45 }
46 */
47
48 ?>
Note: See TracBrowser for help on using the browser.