Compare commits

..
1 Commits
Author SHA1 Message Date
SunnyQjm 1ebcf4d8e5 Update README.md 2020-03-26 14:06:14 +08:00
3 changed files with 8 additions and 82 deletions

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@
- nfd
```bash
./install_ndn-cpp.sh
./install_nfd.sh
```
- nlsr
+7 -7
View File
@@ -3,22 +3,22 @@
DEFAULT_DIR=~/Documents/nfd
# ndn-cxx
NDN_CXX_VERSION=0.6.6
NDN_CXX_VERSION=0.7.0
# nfd
NDN_NFD_VERSION=0.6.6
WEB_SOCKET_PP_VERSION=0.8.1
NDN_NFD_VERSION=0.7.0
WEB_SOCKET_PP_VERSION=0.8.1-hotfix
# NLSR
CHRONO_SYNC_VERSION=0.5.2
PSYNC_VERSION=0.1.0
CHRONO_SYNC_VERSION=0.5.3
PSYNC_VERSION=0.2.0
NLSR_VERSION=0.5.1
# ndn-cpp
NDN_CPP_VERSION=v0.16
NDN_CPP_VERSION=v0.17
# ndn-tools
NDN_TOOLS_VERSION=0.6.4
NDN_TOOLS_VERSION=0.7
function ensureDir() {
dir=$1
-74
View File
@@ -1,74 +0,0 @@
#!/bin/bash
source ./common.sh
function doUninstallIfExists() {
cd ${DEFAULT_DIR}
name=$1
way=$2
if [[ ! -d ${name} ]]; then
echo ${name}" 没有安装,无需卸载"
else
cd ${name}
if [[ ${way} -eq 1 ]];then
sudo ./waf uninstall
elif [[ ${way} -eq 2 ]];then
sudo make uninstall
fi
fi
}
function deleteIfExists() {
filePath=$1
if [[ -d ${filePath} ]];then
sudo rm -r ${filePath}
fi
}
deleteIfExists /usr/local/etc/ndn
deleteIfExists /var/lib/nlsr
# uninstall ndn-cxx if exists
echo "begin uninstall ndn-cxx"
doUninstallIfExists ndn-cxx 1
echo "end uninstall ndn-cxx"
# uninstall nfd
echo "begin uninstall NFD"
doUninstallIfExists NFD 1
echo "end uninstall NFD"
# uninstall ChronoSync
echo "begin uninstall ChronoSync"
doUninstallIfExists ChronoSync 1
echo "end uninstall ChronoSync"
# uninstall Psync
echo "begin uninstall PSync"
doUninstallIfExists PSync 1
echo "end uninstall PSync"
# uninstall nlsr
echo "begin uninstall NLSR"
doUninstallIfExists NLSR 1
echo "end uninstall NLSR"
# uninstall ndn-cpp
echo "begin uninstall ndn-cpp"
doUninstallIfExists ndn-cpp 2
echo "end uninstall ndn-cpp"
# uninstall ndn-tools
echo "begin uninstall ndn-tools"
doUninstallIfExists ndn-tools 1
echo "end uninstall ndn-tools"
deleteIfExists /usr/local/include/ndnboost
deleteIfExists /usr/local/include/ndn-cpp
deleteIfExists /usr/local/include/ndn-cpp-tools
deleteIfExists /usr/local/include/PSync
cd -