Sha256: e48e49aba154253f822a0525327cf2b5ff0ec90ddd25d27ea2c06ce6879d3054

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

#!/bin/bash
cd "$(dirname $0)"
chrev="$1"

if [ -d td-java/.git ];then
    rm -rf td-java/*
    cd td-java
    git checkout . || exit 1
    git pull || exit 1
else
    rm -rf td-java/
    git clone git@github.com:treasure-data/td-java.git td-java || exit 1
    cd td-java
fi
git checkout master

if [ -n "$chrev" ];then
    git checkout $chrev
fi

revname="$(git show --pretty=format:'%H %ad' | head -n 1)"

mvn package -Dmaven.test.skip=true || exit 1
cp target/td-0.1.1-SNAPSHOT.jar ../../java/td-0.1.1-SNAPSHOT.jar

if [ -n "$chrev" ];then
    git checkout master
fi

cd ../../

echo "$revname" > java/td_java.version

echo ""
echo "git commit ./java -m \"updated td-java $revname\""
git commit ./java/td-0.1.1-SNAPSHOT.jar ./java/td_java.version -m "updated td-java $revname" || exit 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
td-0.10.67 build/update-td.sh