Skip to content

Commit

Permalink
emacs lisp build now works
Browse files Browse the repository at this point in the history
git-svn-id: http://jdee.svn.sourceforge.net/svnroot/jdee/branches/paul_landes/jde@56 381a1f10-3442-0410-997e-ef331cd04102
  • Loading branch information
paullandes committed Nov 22, 2008
1 parent e433d4c commit f7ab15d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 42 deletions.
29 changes: 0 additions & 29 deletions build.el

This file was deleted.

33 changes: 20 additions & 13 deletions build.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>

<project name="jdee" default="compile">
<project name="jdee" default="configure-ebuild">

<property name="project.dir" location="."/>

Expand Down Expand Up @@ -34,7 +34,7 @@
<property file="${user.home}/.jdee-config.properties"/>

<!-- project specific defaults (not user or instance specific) -->
<property file="${project.dir}/config-default.properties"/>
<property file="${config.dir}/default.properties"/>

<propertyfile file="${config.build.file}" comment="user editable build configuration parameters">
<entry key="config.time" type="date" value="now"/>
Expand All @@ -44,33 +44,40 @@
</propertyfile>
</target>

<target name="configure-ebuild" depends="init">
<target name="configure-ebuild" depends="configure">
<mkdir dir="${build.lisp.dir}"/>

<uptodate property="lisp-is-uptodate">
<srcfiles dir="${build.lisp.dir}" includes="*.el"/>
<mapper type="glob" from="*.el" to="*.elc"/>
</uptodate>

<copy todir="${build.lisp.dir}">
<fileset dir="${src.lisp.dir}" includes="*.el"/>
</copy>

<!--uptodate property="lisp-is-uptodate">
<srcfiles dir="lisp" includes="*.el"/>
<mapper type="glob" from="*.el" to="*.elc"/>
</uptodate-->

<echo file="${build.lisp.file}">
(dolist (path '("common"
"eieio"
"semantic"
"semantic/bovine"
"speedbar"
elib-home
"lisp"))
(add-to-list 'load-path path t))
(byte-recompile-directory (expand-file-name "lisp") 0)
))
(add-to-list 'load-path (expand-file-name path "${cedet.dir}") t))
(message "LOAD PATH: %s" (mapconcat #'identity load-path ":"))
(add-to-list 'load-path "${src.lisp.dir}")
(byte-recompile-directory (expand-file-name "${build.lisp.dir}") 0)
</echo>
</target>

<target name="compile" depends="init-compile">
<target name="compile-ebuild" depends="configure-ebuild" if="lisp-is-uptodate">
<exec dir="${build.lisp.dir}" executable="emacs">
<arg value="--script"/>
<arg value="build.el"/>
</exec>
</target>


<target name="clean" depends="init">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f7ab15d

Please sign in to comment.