1
0
mirror of https://github.com/PDP-10/its.git synced 2026-02-14 03:54:00 +00:00
Files
PDP-10.its/build/deploy-ftp.sh
Mike Kostersitz (Oilcan Productions) e479dca69a Update deploy-ftp.sh
Adding the line that generates the tar files during build since we are
not calling the SSH script right now.
2023-03-07 15:22:17 +01:00

34 lines
510 B
Bash

#!/bin/sh
set -e
HOST="hactrn.kostersitz.com"
USER="hactrn@kostersitz.com"
DIR="images"
NETRC="$HOME/.netrc"
if test -z "$FTP_SECRET"; then
echo 'ERROR: No password in $FTP_SECRET.'
exit 1
fi
echo "machine $HOST" > "$NETRC"
echo "login $USER" >> "$NETRC"
echo "password $FTP_SECRET" >> "$NETRC"
chmod 600 "$NETRC"
(cd out; tar czf $EMULATOR.tgz $EMULATOR)
echo "Deploying as $USER at $HOST"
ftp "$HOST" <<EOF
passive
type image
cd $DIR
lcd out
put $EMULATOR.tgz
bye
EOF
exit 0