Version 4.4.2: test assert can compare files/dir
[fanfix.git] / export.sh
CommitLineData
632cc690
NR
1#!/bin/sh
2
3# Export script
4#
5# Version:
1ce2b81c 6# - 1.1.1: use the new sjar command to make sources
b771aed5 7# - 1.1.0: allow multiple targets
632cc690
NR
8# - 1.0.0: add a version comment
9
10cd "`dirname "$0"`"
11
12if [ "$1" = "" ]; then
13 echo "You need to specify where to export it" >&2
14 exit 1
632cc690
NR
15fi
16
17LIBNAME="`cat configure.sh | grep '^echo "NAME = ' | cut -d'"' -f2 | cut -d= -f2`"
18LIBNAME="`echo $LIBNAME`"
19
20make mrpropre
1ce2b81c 21./configure.sh && make && make sjar
b771aed5
NR
22if [ $? = 0 ]; then
23 while [ "$1" != "" ]; do
24 mkdir -p "$1"/libs/
25 cp "$LIBNAME"-`cat VERSION`-sources.jar "$1"/libs/
26 cp "$LIBNAME".jar "$1"/libs/
27 shift
28 done
29fi
632cc690 30