#!/bin/bash
#
# Welcome to the DTC install maker !
# Maintainer: Thomas GOIRAND <thomas [ at ] goirand.fr>
# please do not ship with you packages
# this is only a small coder tool...
#

VERS=`cat version`
RELS=`cat release`
VERSION=$VERS"-"$RELS

echo " --- Making the DTC CVS snapshot archive --- "
mkdir -p "CVS_dtc_"$VERSION"_all/etc/zones"
mkdir -p "CVS_dtc_"$VERSION"_all/bin"
cp -rf ../debian ../CVS ../admin/ ../client/ ../shared/ ../email ../doc/ ../debian ../Makefile "CVS_dtc_"$VERSION"_all"
cp -rf prepareDebianTree buildRelease buildDebianPackage README.how_to_build_a_pachage release version clean make* sources "CVS_dtc_"$VERSION"_all/bin"
tar -czf "CVS_dtc_"$VERSION"_all.tar.gz" "CVS_dtc_"$VERSION"_all"
echo " --- Succesfully made CVS_dtc_"$VERSION"_all.tar.gz ---"
