~ubuntu-branches/ubuntu/quantal/clojure/quantal

« back to all changes in this revision

Viewing changes to debian/scripts/clojurec

  • Committer: Bazaar Package Importer
  • Author(s): Peter Collingbourne
  • Date: 2009-03-21 12:02:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090321120243-5w1lahgxswsx5lt5
Tags: 0.0.20090320.dfsg-1
* New upstream release.
* debian/patches/01-system-asm.patch: updated
* debian/patches/02-better-bytecode.patch: removed; applied upstream
* debian/control: upped Standards-Version to 3.8.1
* debian/source.lintian-overrides: override .dfsg lintian info due to
  date-based version number

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
dest_dir=.
 
4
 
 
5
if [ $# -eq 0 ] ; then
 
6
        echo "usage: $0 [-d <destination-directory>] [-cp/-classpath <classpath>] lib1 lib2 ..."
 
7
        exit 1
 
8
fi
 
9
 
 
10
if [ "x$CLASSPATH" = "x" ] ; then
 
11
        extra_classpath=""
 
12
else
 
13
        extra_classpath=":$CLASSPATH"
 
14
fi
 
15
 
 
16
while true ; do
 
17
        case "$1" in
 
18
                -d)
 
19
                        dest_dir="$2"
 
20
                        shift 2 ;;
 
21
                -cp | -classpath)
 
22
                        extra_classpath=":$2"
 
23
                        shift 2 ;;
 
24
                --)
 
25
                        shift
 
26
                        break ;;
 
27
                *)
 
28
                        break ;;
 
29
        esac
 
30
done
 
31
 
 
32
exec java -cp /usr/share/java/asm3.jar:/usr/share/java/asm3-commons.jar:/usr/share/java/clojure.jar:"$dest_dir$extra_classpath" -Dclojure.compile.path="$dest_dir" clojure.lang.Compile "$@"