diff options
Diffstat (limited to 'recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh')
-rwxr-xr-x | recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh b/recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh new file mode 100755 index 0000000..9edd06f --- /dev/null +++ b/recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +COPY_LIST=" +README_TARGET.TXT +fft.tgz +setup_target_fft_env.sh +" + +for NEXT in ${COPY_LIST} +do + [ -f "${NEXT}" ] || { + echo "File: '${NEXT}' in copy list does not exist." + exit 1 + } + + scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${NEXT} root@192.168.7.1:/home/root/fft 2> /dev/null || { + echo "ERROR: while copying file '${NEXT}' to target." + exit 1 + } +done + +exit 0 + |