diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c0b2b99 --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash +InstallDir=$(cd `dirname $0`; pwd) +ProfileFile=~/.profile + +echo "export LD_LIBRARY_PATH=$InstallDir/lib:$InstallDir/lib/HCNetSDKCom:\$LD_LIBRARY_PATH">>$ProfileFile +echo "export PATH=\$PATH:$InstallDir">>$ProfileFile +source $ProfileFile +echo "Install complete" +echo "Remeber to run source $ProfileFile" \ No newline at end of file diff --git a/pack.sh b/pack.sh index 45b85e3..eb549e0 100755 --- a/pack.sh +++ b/pack.sh @@ -2,5 +2,6 @@ mkdir -p dist cp build/hkstreamer dist/ cp -r lib dist/ +cp install.sh dist/ cd dist tar -cvzf hkstreamer.tar.gz . \ No newline at end of file