| 19 | | system("rm -rf $framework/agi-bin $framework/bin $framework/htdocs"); |
|---|
| 20 | | system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/agi-bin $framework/agi-bin"); |
|---|
| 21 | | system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/bin $framework/bin"); |
|---|
| 22 | | system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/htdocs $framework/htdocs"); |
|---|
| | 24 | if (system("rm -rf $framework/agi-bin $framework/bin $framework/htdocs $framework/htdocs_panel $framework/upgrades $framework/libfreepbx.install.php")) { |
|---|
| | 25 | die "FATAL: failed to remove previoulsly exported directories\n"; |
|---|
| | 26 | } |
|---|
| | 27 | if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/agi-bin $framework/agi-bin")) { |
|---|
| | 28 | die "FATAL: failed to export agi-bin directory\n"; |
|---|
| | 29 | } |
|---|
| | 30 | if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/bin $framework/bin")) { |
|---|
| | 31 | die "FATAL: failed to export bin directory\n"; |
|---|
| | 32 | } |
|---|
| | 33 | if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/htdocs $framework/htdocs")) { |
|---|
| | 34 | die "FATAL: failed to export htdocs directory\n"; |
|---|
| | 35 | } |
|---|
| | 36 | if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/amp_conf/htdocs_panel $framework/htdocs_panel")) { |
|---|
| | 37 | die "FATAL: failed to export htdocs_panel directory\n"; |
|---|
| | 38 | } |
|---|
| | 39 | if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/upgrades $framework/upgrades")) { |
|---|
| | 40 | die "FATAL: failed to export upgrades directory\n"; |
|---|
| | 41 | } |
|---|
| | 42 | # svn doesn't seem to allow for a single file to be checked out so we need to do a kludgey workaround |
|---|
| | 43 | # this is what we wanted: |
|---|
| | 44 | # |
|---|
| | 45 | # if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/libfreepbx.install.php $framework/libfreepbx.install.php")) { |
|---|
| | 46 | # |
|---|
| | 47 | if (system("svn co --non-recursive https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch $framework/tmp")) { |
|---|
| | 48 | die "FATAL: failed to checkout branch with libfreepbx.install.php\n"; |
|---|
| | 49 | } |
|---|
| | 50 | if (system("mv $framework/tmp/libfreepbx.install.php $framework/")) { |
|---|
| | 51 | die "FATAL: failed to mv libfreepbx.install.php to $framework\n"; |
|---|
| | 52 | } |
|---|
| | 53 | if (system("rm -rf $framework/tmp")) { |
|---|
| | 54 | die "FATAL: failed to remove $framework/tmp\n"; |
|---|
| | 55 | } |
|---|
| 32 | | system("rm -rf $framework/htdocs/mainstyle.css"); |
|---|
| 33 | | system("rm -rf $framework/htdocs/index.html"); |
|---|
| 34 | | system("rm -rf $framework/htdocs/admin/modules/_cache"); |
|---|
| | 67 | # TODO: check if these are stiff there and need to be special cased |
|---|
| | 68 | # |
|---|
| | 69 | if (system("rm -rf $framework/htdocs/mainstyle.css")) { |
|---|
| | 70 | die "FATAL: failed to trim htdocs/mainstyle.css\n"; |
|---|
| | 71 | } |
|---|
| | 72 | if (system("rm -rf $framework/htdocs/index.html")) { |
|---|
| | 73 | die "FATAL: failed to trim htdocs/index.html\n"; |
|---|
| | 74 | } |
|---|
| | 75 | if (system("rm -rf $framework/htdocs/admin/modules/_cache")) { |
|---|
| | 76 | die "FATAL: failed to trim modules/_cache\n"; |
|---|
| | 77 | } |
|---|
| 73 | | system("mv $filename ../../release/$rver"); |
|---|
| 74 | | system("svn add ../../release/$rver/$filename"); |
|---|
| 75 | | system("svn ps svn:mime-type application/tgz ../../release/$rver/$filename"); |
|---|
| 76 | | system("svn ci ../../release/$rver/$filename $rawname/module.xml -m \"Module Publish Script: $rawname $vers\""); |
|---|
| | 120 | if ($debug) { |
|---|
| | 121 | print "mv $filename ../../release/$rver\n"; |
|---|
| | 122 | print "svn add ../../release/$rver/$filename\n"; |
|---|
| | 123 | print "svn ps svn:mime-type application/tgz ../../release/$rver/$filename\n"; |
|---|
| | 124 | print "svn ci ../../release/$rver/$filename $rawname/module.xml -m \"Module Publish Script: $rawname $vers\"\n"; |
|---|
| | 125 | } else { |
|---|
| | 126 | system("mv $filename ../../release/$rver"); |
|---|
| | 127 | system("svn add ../../release/$rver/$filename"); |
|---|
| | 128 | system("svn ps svn:mime-type application/tgz ../../release/$rver/$filename"); |
|---|
| | 129 | system("svn ci ../../release/$rver/$filename $rawname/module.xml -m \"Module Publish Script: $rawname $vers\""); |
|---|
| | 130 | } |
|---|