eclipse plugin: Let the user specify the updates...
...and binaries target directories.
This commit is contained in:
parent
d8b1851876
commit
b688ab85ef
2 changed files with 15 additions and 6 deletions
|
@ -19,12 +19,19 @@ if os.path.exists('.scons-option-cache'):
|
|||
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 @@ subprocess.call( [
|
|||
"-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",
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue