#!/bin/bash

PKGNAME=backintime
PKGVER=`cat VERSION`

echo $PKGNAME $PKGVER

rm */Makefile
rm *~
rm */*~
rm *.deb
rm */*.pyc
rm -rf tmp
rm -rf common/po/*.mo

cd ..
mkdir $PKGNAME-$PKGVER
cp -a backintime/* $PKGNAME-$PKGVER

tar cfz $PKGNAME-${PKGVER}_src.tar.gz $PKGNAME-$PKGVER
rm -rf $PKGNAME-$PKGVER
cd backintime

