Permalink
Browse files

better place to put automatically-generated resources

  • Loading branch information...
Lawrence D'Oliveiro
Lawrence D'Oliveiro committed Oct 6, 2012
1 parent 140b5c0 commit fda4ca7d5cfefadae9118e09731c771a9c7cc53a
Showing with 7 additions and 6 deletions.
  1. +0 −1 .gitignore
  2. +4 −2 build.xml
  3. +3 −3 util/mlmake
View
@@ -2,4 +2,3 @@
/gen/
/local.properties
/keystore.properties
-/res/raw/ml.ti5l
View
@@ -50,13 +50,15 @@
<target name="clean" description="Removes output files created by other targets.">
<delete dir="${out.absolute.dir}" verbose="${verbose}" />
<delete dir="${gen.absolute.dir}" verbose="${verbose}" />
- <delete file="${resource.absolute.dir}/raw/ml.ti5l" verbose="${verbose}" />
</target>
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<target name="-pre-build">
- <exec executable="util/mlmake"/>
+ <exec executable="util/mlmake">
+ <arg value="mlsrc"/>
+ <arg value="${out.res.absolute.dir}/raw"/>
+ </exec>
</target>
<!--
<target name="-pre-compile">
View
@@ -2,7 +2,7 @@
#+
# This script builds the master library file.
#
-# Copyright 2011 Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
+# Copyright 2011, 2012 Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
@@ -32,8 +32,8 @@ def mtime_if(filename) :
#end mtime_if
utildir = os.path.dirname(sys.argv[0])
-srcdir = os.path.join(os.path.dirname(utildir), "mlsrc")
-dstdir = "res/raw"
+srcdir = sys.argv[1]
+dstdir = sys.argv[2]
dstfile = os.path.join(os.path.dirname(utildir), os.path.join(dstdir, "ml.ti5l"))
sys.stderr.write("%s => %s\n" % (srcdir, dstfile)) # debug
libhelpname = "help.html"

0 comments on commit fda4ca7

Please sign in to comment.