• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2#
3# Copyright 2018-2023 The Khronos Group Inc.
4#
5# SPDX-License-Identifier: Apache-2.0
6
7specdir=out
8RHOST=kaylee
9RPATH=/home/khronos/memberftp/vulkan/
10
11cd $specdir || (echo "Cannot cd to $specdir !" ; exit 1)
12# Create tarball and upload/copy/extract that to speed things
13echo "Creating tarball"
14tar czpf /tmp/tarball.tgz .
15echo "Uploading tarball"
16scp /tmp/tarball.tgz $RHOST:$RPATH
17echo "Extracting tarball on server"
18# Could add "&& rm tarball.tgz" but nice to have around
19ssh $RHOST "cd $RPATH && tar xzpf tarball.tgz"
20echo "Removing tarball"
21rm /tmp/tarball.tgz
22
23# scp -rp * $RHOST:$RPATH
24