forked from ggianna/docker-bde-event-detection-sc7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetprops.sh
More file actions
executable file
·24 lines (21 loc) · 900 Bytes
/
setprops.sh
File metadata and controls
executable file
·24 lines (21 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
arg="$1"
editor="vim"
# property files to modify
paths="$BDE_ROOT_DIR/BDEEventDetection/BDEClustering/res/clustering.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDETwitterListener/res/twitter.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDELocationExtraction/res/location.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDELocationExtraction/res/locextractor.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDELocationExtraction/res/entextractor.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDERSSCrawler/res/news.properties"
paths+=" $BDE_ROOT_DIR/BDEEventDetection/BDERSSCrawler/res/blogs.properties"
for p in $paths ; do
[ ! -f "$p" ] && echo "File [$p] does not exist (run initialization first ?)." && continue
if [ ! -z "$arg" ]; then
if [ -z "$(echo $p | grep $arg)" ]; then
continue;
fi
fi
echo "[$p]"
$editor $p
done