Sha256: 3e831025d83220bd8b4bfffa7725006edfc0febd19cc37e5061b7cc6c313f94a

Contents?: true

Size: 972 Bytes

Versions: 10

Compression:

Stored size: 972 Bytes

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.1.2-SNAPSHOT"

mvn package -Dmaven.test.skip=true || exit 1
cp target/td-bulk-import-${vername}.jar ../../java/td-bulk-import-${vername}.jar

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

10 entries across 10 versions & 1 rubygems

Version Path
td-0.10.82 build/update-td-bulk-import-java.sh
td-0.10.81 build/update-td-bulk-import-java.sh
td-0.10.79 build/update-td-bulk-import-java.sh
td-0.10.78 build/update-td-bulk-import-java.sh
td-0.10.77 build/update-td-bulk-import-java.sh
td-0.10.76 build/update-td-bulk-import-java.sh
td-0.10.75 build/update-td-bulk-import-java.sh
td-0.10.74 build/update-td-bulk-import-java.sh
td-0.10.73 build/update-td-bulk-import-java.sh
td-0.10.72 build/update-td-bulk-import-java.sh