Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mkdevdist.sh - github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71ba32ef8782eae3078a1234c0315f6c777ffb06 (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
#!/bin/bash

DESTDIR=/tmp/dev_dist_vw
echo "Checking out git repo to $DESTDIR"
rm -rf $DESTDIR
git clone git@github.com:JohnLangford/vowpal_wabbit.git $DESTDIR

cd $DESTDIR
sh autogen.sh

VERSION=$(cat vowpalwabbit/config.h | grep PACKAGE_VERSION | cut -d '"' -f 2)

echo Making Distribution for version $VERSION
make dist

FNAME=$(ls vowpal_wabbit-*.tar.gz)
mv $FNAME /tmp

echo "Adding all files for dev distro"
git checkout origin/releases
rm -rf *
mv /tmp/$FNAME .
tar -zxvf $FNAME
rm $FNAME
git add vowpal_wabbit-*
VDATE=$VERSION-$(date +%Y-%m-%d-%H-%M)
git commit -m "added version $VDATE files"
git push origin releases