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