1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-18 12:00:21 +01:00

* Added shell script for preparing distfile.

* Added unitests.
 * Added mocks for video files.
 * Added midentify module.
This commit is contained in:
2008-12-15 20:46:26 +00:00
parent 0adcdaba8d
commit 292d290723
13 changed files with 286 additions and 0 deletions

32
prepare_dist_package.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
# remove ~, pyc, pyo files from current directory
mkdir t 2>/dev/null
if [ $? != 0 ]; then
echo "cannot create directory 't': File exist."
echo "Rename it, move or rename, bcoz it's on the way."
exit
fi
cd t
alias ls=ls
PREV=`ls -1 ..|grep bz2|tail -n 1|cut -f '2' -d '_'|cut -f 1 -d '.'`
REV=`svn export svn://10.0.0.10/repos/Python/pyGTKtalog pyGTKtalog |tail -n 1|cut -f 3 -d " "|cut -f 1 -d '.'`
cd pyGTKtalog
find . -name \*~ -exec rm '{}' ';'
find . -name \*pyc -exec rm '{}' ';'
find . -name \*pyo -exec rm '{}' ';'
find . -type d -name .svn -exec rm -fr '{}' ';'
rm -fr db img
rm -fr prepare_dist_package.sh
svn log -r ${PREV}:HEAD -v svn://10.0.0.10/repos/Python/pyGTKtalog > CHANGELOG
cd ..
tar jcf ../pygtktalog_${REV}.tar.bz2 pyGTKtalog
cd ..
rm -fr t