blob: 2170a12a4af410db8c5e3f837bc8d6065f3fa4cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
srcd=$PWD
package_version=@PACKAGE_VERSION@
case $# in
0)
;;
*) echo "usage is $0"
exit 1
;;
esac
svn info 2>&1 > /dev/null
if [ $? -eq 1 ]
then
issvn=0
else
issvn=1
fi
if [[ $issvn -eq 1 ]]
then
svn export --force http://libcg.svn.sf.net/svnroot/libcg/tags/v$package_version /tmp/libcgroup-$package_version
if [[ $? -ne 0 ]]
then
echo "Tag v$package_version missing"
fi
else
cp -a . /tmp/libcgroup-$package_version
fi
pushd /tmp 2>&1 > /dev/null
tar jcf $srcd/libcgroup-$package_version.tar.bz2 libcgroup-$package_version
popd 2>&1 > /dev/null
|