#!/bin/sh
export TDVERSION=0.1.0
cd ~/workspace-java/TimeDistortion
#find . -type f -name "src/.*" -exec ls -l {} \;
#find . -type f -name "src/.*" -exec rm -i {} \;
find . -type f -name ".directory" -exec ls -l {} \;
find . -type f -name ".directory" -exec rm -i {} \;
find . -name ".*" -exec ls -l {} \;

rm -r ~/tmp/timedistortion-$TDVERSION
mkdir ~/tmp/timedistortion-$TDVERSION
tar --exclude=.gitignore --exclude=.directory --exclude=.project --exclude=.settings --exclude=.classpath --exclude=3rd -czf ~/tmp/timedistortion-$TDVERSION/timedistortion-0.0.0.tar.gz TD-$TDVERSION.jar LICENSE tar_pack_TD Readme.md moviesplit image265video td.sh doc src

cd ~/tmp/timedistortion-$TDVERSION
tar -xzf timedistortion-0.0.0.tar.gz

cd ~/tmp
tar --exclude=.directory --exclude=timedistortion-0.0.0.tar.gz --exclude=timedistortion-$TDVERSION.tar.gz -czf timedistortion-$TDVERSION.tar.gz timedistortion-$TDVERSION
cp  ~/tmp/timedistortion-$TDVERSION.tar.gz ~/slitscan_archive
cd ~/slitscan_archive
tar -tzf timedistortion-$TDVERSION.tar.gz
ls -l timedistortion-$TDVERSION.tar.gz
