Author: timotei
Date: Thu Aug 4 21:15:02 2011
New Revision: 50602
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50602&view=rev
Log:
eclipse plugin: Let the user specify the updates
and binaries target directories.
Modified:
trunk/utils/umc_dev/build/SConstruct
trunk/utils/umc_dev/build/build.xml
Modified: trunk/utils/umc_dev/build/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/build/SConstruct?rev=50602&r1=50601&r2=50602&view=diff
==============================================================================
--- trunk/utils/umc_dev/build/SConstruct (original)
+++ trunk/utils/umc_dev/build/SConstruct Thu Aug 4 21:15:02 2011
@@ -19,12 +19,19 @@
opts = Variables( ".scons-option-cache" )
opts.AddVariables(
PathVariable( "eclipsedir", "The directory that contains the eclipse
binary and all the needed plugins",
- "", PathVariable.PathIsDir )
+ "", PathVariable.PathIsDir ),
+ PathVariable( "updatesdir", "The directory that should contain the updates
for the plugin",
+ os.getcwd() , PathVariable.PathAccept ),
+ PathVariable( "binariesdir", "The directory that should contain the
binaries for the plugin",
+ os.getcwd() , PathVariable.PathAccept )
)
env = Environment( options = opts )
opts.Save( '.scons-option-cache', env )
eclipse_dir = env[ "eclipsedir" ]
+updates_dir = env[ "updatesdir" ]
+binaries_dir = env[ "binariesdir" ]
+
temp_build_dir = os.environ[ "TMP" ] + "/umcdev_build"
print "Clearing temporary build dir ( " + temp_build_dir + " ) ..."
@@ -67,6 +74,8 @@
"-DbuildDirectory=" + temp_build_dir,
"-Dbase=" + eclipse_dir,
"-DbaseLocation=" + eclipse_dir,
+ "-DupdatesDir=" + updates_dir,
+ "-DbinariesDir=" + binaries_dir,
"-Ddeltapack=" + eclipse_dir,
"-Declipse.pdebuild.scripts=" + pde_build_dir + "/scripts",
"-Declipse.pdebuild.templates=" + pde_build_dir + "/templates",
Modified: trunk/utils/umc_dev/build/build.xml
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/build/build.xml?rev=50602&r1=50601&r2=50602&view=diff
==============================================================================
--- trunk/utils/umc_dev/build/build.xml (original)
+++ trunk/utils/umc_dev/build/build.xml Thu Aug 4 21:15:02 2011
@@ -18,25 +18,25 @@
<!-- clear previous builds -->
<delete quiet="true">
- <fileset dir="${basedir}/update_site"/>
+ <fileset dir="${updatesDir}"/>
</delete>
<delete quiet="true">
- <fileset dir="${basedir}/${buildLabel}"/>
+ <fileset dir="${binariesDir}/${buildLabel}"/>
</delete>
<ant
antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" />
- <move todir="${basedir}/${buildLabel}">
+ <move todir="${binariesDir}/${buildLabel}">
<fileset dir="${buildDirectory}/${buildLabel}" includes="*.zip"/>
</move>
- <move todir="${basedir}/update_site">
+ <move todir="${updatesDir}">
<fileset dir="${buildDirectory}/repository"/>
</move>
<!-- remove non-wesnoth plugins -->
<delete>
- <fileset dir="${basedir}/update_site/plugins">
+ <fileset dir="${updatesDir}/plugins">
<exclude name="org.wesnoth*"/>
</fileset>
</delete>
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits