eagler-teavm-fork/upload-files.sh

37 lines
1.0 KiB
Bash
Raw Normal View History

2017-02-18 09:18:17 -08:00
#!/bin/bash
echo "${SSH_KEY}" | base64 --decode >/tmp/sftp_rsa
chmod 0700 /tmp/sftp_rsa
2019-03-25 03:48:15 -07:00
SCP="scp -o 'StrictHostKeyChecking no' -i /tmp/sftp_rsa -B -r -P $FTP_PORT"
SCP_TARGET="$FTP_USER@$FTP_HOST:~/$FTP_PATH"
#
# Upload CLI
#
$SCP tools/cli/target/teavm-cli-$NEW_VERSION.jar $SCP_TARGET/cli/dev/
#
# Update IDEA repository descriptor
#
2017-02-18 09:18:17 -08:00
cat <<EOF >.idea-repository.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
<plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
2018-12-27 01:26:25 -08:00
<idea-version since-build="173.*" until-build="193.*" />
2017-02-18 09:18:17 -08:00
<description>TeaVM support</description>
</plugin>
</plugins>
EOF
$SCP .idea-repository.xml $SCP_TARGET/idea/dev/teavmRepository.xml
#
# Upload Eclipse plugin
#
2018-11-22 03:49:30 -08:00
#cd tools/eclipse/updatesite/target/repository
# find . -type f -exec curl \
# --ftp-create-dirs \
# -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
# -T {} \
# ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev/{} \;
#cd ../../../../..