aboutsummaryrefslogtreecommitdiff
path: root/recipes-demo/de10-nano-fftsw-apps/files/copy_to_target.sh
blob: 9edd06f7fc9bc0d7a8e8c9c8198e3d51785ef5dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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