use poll() instead of select()
[rofl0r-microsocks.git] / create-dist.sh
blob279774ddcf7d3b4936306051f4af35850f2c2bd2
1 #!/bin/sh
2 if [ -z "$VER" ] ; then
3 echo set VER!
4 exit
5 fi
6 me=`pwd`
8 proj=microsocks
9 projver=${proj}-${VER}
11 tempdir=/tmp/${proj}-0000
12 rm -rf "$tempdir"
13 mkdir -p "$tempdir"
15 cd $tempdir
16 GITDIR=https://github.com/rofl0r/$proj
17 GITDIR=$me
18 git clone "$GITDIR" $projver
20 rm -rf $projver/.git
21 rm -rf $projver/docs
22 rm -f $projver/.gitignore
23 rm -f $projver/create-dist.sh
25 tar cf $proj.tar $projver/
26 xz -z -9 -e $proj.tar
27 mv $proj.tar.xz $me/$projver.tar.xz
28 rm -rf "$tempdir"