Skip to content
Snippets Groups Projects
Commit 15d85466 authored by al.schwinn's avatar al.schwinn
Browse files

download snap7 archive only, if not already available

parent e0772d74
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,13 @@ set -e
SNAP7_VERSION=1.4.0
SNAP7_FOLDER=snap7-full-${SNAP7_VERSION}
rm -rf snap7-full*
wget http://downloads.sourceforge.net/project/snap7/${SNAP7_VERSION}/${SNAP7_FOLDER}.tar.gz
tar -vxzf ${SNAP7_FOLDER}.tar.gz
mv ${SNAP7_FOLDER} snap7-full
archiveFile=${SNAP7_FOLDER}.tar.gz
if [ ! -f "$archiveFile" ]
then
rm -rf snap7-full*
wget http://downloads.sourceforge.net/project/snap7/${SNAP7_VERSION}/${archiveFile}
tar -vxzf ${archiveFile}
mv ${SNAP7_FOLDER} snap7-full
fi
cd snap7-full/build/unix
make -f x86_64_linux.mk
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment