Compare commits

...
2 Commits
Author SHA1 Message Date
SunnyQjm 7c84864b34 update: add uninstall script 2020-06-13 15:25:40 +08:00
SunnyQjm 361d6fdbce add: nfd v0.6.6 version script 2020-03-31 10:14:24 +08:00
2 changed files with 81 additions and 7 deletions

No files matched your search

+7 -7
View File
@@ -3,22 +3,22 @@
DEFAULT_DIR=~/Documents/nfd
# ndn-cxx
NDN_CXX_VERSION=0.7.0
NDN_CXX_VERSION=0.6.6
# nfd
NDN_NFD_VERSION=0.7.0
WEB_SOCKET_PP_VERSION=0.8.1-hotfix
NDN_NFD_VERSION=0.6.6
WEB_SOCKET_PP_VERSION=0.8.1
# NLSR
CHRONO_SYNC_VERSION=0.5.3
PSYNC_VERSION=0.2.0
CHRONO_SYNC_VERSION=0.5.2
PSYNC_VERSION=0.1.0
NLSR_VERSION=0.5.1
# ndn-cpp
NDN_CPP_VERSION=v0.17
NDN_CPP_VERSION=v0.16
# ndn-tools
NDN_TOOLS_VERSION=0.7
NDN_TOOLS_VERSION=0.6.4
function ensureDir() {
dir=$1
+74
View File
@@ -0,0 +1,74 @@
#!/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 -