Permalink
Browse files

Remove legacy build machinery.

  • Loading branch information...
drewr committed Jul 27, 2009
1 parent 6981030 commit f89df28c85813232b6d0f5951a9780aee4d7983c
Showing with 0 additions and 68 deletions.
  1. +0 −58 bin/make-jar
  2. +0 −6 etc/compile
  3. +0 −3 etc/jars-compile
  4. +0 −1 etc/jars-dist
View
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-die() {
- echo $1 1>&2
- exit 1
-}
-
-HERE=`pwd -P`
-DATE=`date +%Y%m%d%H%M%S`
-VERSION=`git rev-parse HEAD | cut -c-8`
-
-[ "x" == "x$SRC" ] && die "error: please set \$SRC"
-[ "x" == "x$MAIN" ] && die "error: please set \$MAIN"
-[ "x" == "x$PROJECT" ] && die "error: please set \$PROJECT"
-[ "x" == "x$JARHOME" ] && die "error: please set \$JARHOME"
-[ "x" == "x$DEST" ] && die "error: please provide jar destination"
-[ ! -d $DEST ] && mkdir -p $DEST
-
-CLASSES=classes
-BUILD=build
-NSCOMPILE=$HERE/etc/compile
-JAR=$DEST/$PROJECT-$DATE-$VERSION.jar
-JARCOMPILE=$HERE/etc/jars-compile
-JARDIST=$HERE/etc/jars-dist
-
-mkdir -p $CLASSES
-[ -d $SRC/clj ] && ( cd $SRC/clj; git archive --format tar head . ) | ( cd $CLASSES; tar xf - )
-[ -d $SRC/jvm ] && ( cd $SRC/jvm; git archive --format tar head . ) | ( cd $CLASSES; tar xf - )
-
-mkdir -p $BUILD
-
-for jarname in `cat $JARCOMPILE`; do
- jar=$JARHOME/$jarname
- echo Extracting $jar
- ( cd $BUILD; jar xf $jar )
-done
-
-for jarname in `cat $JARDIST`; do
- jar=$JARHOME/$jarname
- echo Packaging $jar
- ( cd $CLASSES; jar tvf $jar | egrep '(class|clj)$' | xargs jar xf $jar - )
-done
-
-java \
- -cp $BUILD:$CLASSES \
- -Dclojure.compile.path=$CLASSES \
- clojure.lang.Compile \
- `cat $NSCOMPILE | xargs echo` \
-&& \
-( cd $CLASSES
- jar cfe \
- $JAR \
- $MAIN \
- . ) \
-&& rm -rf $CLASSES $BUILD
-
-echo Writing $JAR
-
View
@@ -1,6 +0,0 @@
-com.draines.postal.main
-com.draines.postal.core
-com.draines.postal.date
-com.draines.postal.message
-com.draines.postal.sendmail
-com.draines.postal.smtp
View
@@ -1,3 +0,0 @@
-clojure.jar
-clojure-contrib.jar
-mail.jar
View
@@ -1 +0,0 @@
-mail.jar

0 comments on commit f89df28

Please sign in to comment.