From a888d5816aad16b61f8c44145b5c28b7635c79d9 Mon Sep 17 00:00:00 2001 From: Eric Sauvageau Date: Wed, 3 Nov 2021 01:19:47 -0400 Subject: [PATCH] build: remove publish.sh script This script is too specific to my own development environment, and of no real use to anyone else. --- tools/publish.sh | 54 ------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100755 tools/publish.sh diff --git a/tools/publish.sh b/tools/publish.sh deleted file mode 100755 index e197cff9822..00000000000 --- a/tools/publish.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -if [ "$1" == "beta" ] -then - SUFFIXE="Beta/" - SUFFIXESF="Beta/" -else - SUFFIXE="" - SUFFIXESF="Release/" -fi - -read -p "Deploy to $SUFFIXESF (y/n)?" choice -case "$choice" in - y|Y ) echo "Deploying to $SUFFIXESF";; - * ) echo "Aborting."; exit;; -esac - -eval $(ssh-agent -s) -ssh-add - -cd /media/sf_Share/images/ - -MODELS=(RT-AC68U RT-AC88U RT-AC3100 RT-AC5300 RT-AC86U RT-AX88U RT-AX56U RT-AX58U) - -for MODEL in "${MODELS[@]}" -do - : - echo "Deploying $MODEL to Onedrive..." - cp $MODEL*.zip /media/nas/OnedriveBusiness/Asuswrt-Merlin/Releases/$MODEL/$SUFFIXE - echo "Deploying $MODEL to Sourceforge..." - scp $MODEL*.zip rmerlin@frs.sourceforge.net:/home/pfs/project/asuswrt-merlin/$MODEL/$SUFFIXESF -done - -echo "Uploading documentation..." -cp README-merlin.txt /media/nas/OnedriveBusiness/Asuswrt-Merlin/Documentation/ -scp README-merlin.txt rmerlin@frs.sourceforge.net:/home/pfs/project/asuswrt-merlin/Documentation/ - -cp Changelog*.txt /media/nas/OnedriveBusiness/Asuswrt-Merlin/Documentation/ -scp Changelog*.txt rmerlin@frs.sourceforge.net:/home/pfs/project/asuswrt-merlin/Documentation/ - -# Only upload SHA256 checksums for non-beta releases -if [ "$SUFFIXE" == "Beta/" ] -then - mv sha256sums.txt sha256sums-beta.txt - mv sha256sums-ng.txt sha256sums-ng-beta.txt -fi - -cp sha256sums*.txt /media/nas/OnedriveBusiness/Asuswrt-Merlin/Documentation/ -scp sha256sums*.txt rmerlin@frs.sourceforge.net:/home/pfs/project/asuswrt-merlin/Documentation/ - -echo "Done deploying!" - -eval $(ssh-agent -k) -