6
echo 'root is not allowed to use this script'
12
if [[ $dirname == /* ]]; then
15
cd `pwd`/$dirname/../.. > /dev/null
20
# This is not safe against race condition, but I trust my own machine to not be hacked ..
23
version=`/usr/bin/env python $path/lib/exabgp/version.py`
25
destination=$build/$name
27
echo destination is $destination
31
# Adding the files and folders
39
cp -r $f $destination/
42
# Removing all the non-commited files (normally test configurations)
44
echo removing unreleased file
46
internal=`hg status | grep "^?" | awk '{ print $2; }'`
56
echo removing pyc files
59
for f in `find . -name "*.pyc"`;
66
echo removing dot files
69
for f in `find . -name ".?*"`;
76
echo removing orig files
79
for f in `find . -name "*.orig"`;
87
for f in `find . -name "rfc*.txt"`;
92
for f in `find . -name "draft-*.txt"`;
103
# Telling MACs to not include the ._ version of the files
104
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
105
export COPYFILE_DISABLE=true
112
tar zcvf $path/${name}.tgz $name