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