blob: 669efa4d79b3ab66adee646a1fd1bd3b752a9001 (
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/bash
if [ ! -r filelist ]; then
echo "ERROR: Can't read filelist"
exit 1
fi
read -p "Enter the path to the AVP Gold data files: " _avppath
if [ ! -d $_avppath ]; then
echo "ERROR: No such directory"
exit 1
fi
IFS="
"
for file in $(cat filelist); do
if ! find $_avppath -name "$file" -exec cp "{}" . \; &>/dev/null; then
echo "ERROR: Failed to find or copy \"$file\""
exit 1
fi
done
echo "All files successfully copied, now run makepkg"
|