Sha256: f7336ae4e7b527f0f3652d9cdeb28eb0f1a5c3c3c21da61e403e54281505dac9

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

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

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

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

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

mvn package -Dmaven.test.skip=true || exit 1
echo "copy td-bulk-import-${vername}.jar"
cp target/td-bulk-import-${vername}.jar ../../java/td-bulk-import.jar
echo "copy logging.properties"
cp src/test/resources/java/logging.properties ../../java/logging.properties
echo "create VERSION file"
echo "${vername}" > VERSION
mv VERSION ../../java/VERSION

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

cd ../../

echo "$revname" > java/td-bulk-import-java.version

echo ""
echo "git commit ./java -m \"updated td-bulk-import-java $revname\""
git commit ./java/td-bulk-import-${vername}.jar ./java/td-bulk-import-java.version -m "updated td-bulk-import-java $revname" || exit 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
td-0.10.88 build/update-td-bulk-import-java.sh