#!/bin/bash


dev=/home/ivan/dev
ardb_dir=$dev/ARDB
ri_dir=$dev/Index/Index
events_dir=$dev/Events/Events
sqlh_dir=$dev/ARDB/sql_helper


release=shift

if test -z $release; then
   echo "give release name as a parameter"
   exit 1  
fi


mkdir $release && cd $release

dist_dir=`pwd`

mkdir bin
mkdir lib
mkdir userdata
mkdir session
mkdir presentation
mkdir unconfirmed
mkdir objects
mkdir plugins


### from ARDB:
a=$ardb_dir

cp -r $a/lib/* lib/
cp -r $a/home/presentation $a/configuration.xml $a/home/screens.xml ./
cp -r $a/home/bin/* bin/
cp -r $a/sql_helper/*.pm lib/



