Use EWMA instead of bare rtt for min rtt.
[tor.git] / scripts / maint / geoip / update_and_commit_geoip.sh
bloba83f82433e942ca3f01f87922ad169d1af666e42
1 #!/bin/sh
3 set -e
5 CMDDIR=$(cd "$(dirname "$0")" && pwd)
7 if [ ! -e "./src/config/geoip" ] ; then
8 echo "Run this from inside the root dir of your oldest LTS repository"
9 exit 1
12 if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
13 echo "Working directory is not clean."
14 exit 1
17 TOPDIR=$(pwd)
18 cd "./src/config/"
19 "${CMDDIR}/update_geoip.sh"
20 cd "${TOPDIR}"
22 DASH_DATE=$(date -u +"%Y-%m-%d")
23 SLASH_DATE=$(date -u +"%Y/%m/%d")
24 CHANGESFILE="changes/geoip-$DASH_DATE"
26 cat > "$CHANGESFILE" <<EOF
27 o Minor features (geoip data):
28 - Update the geoip files to match the IPFire Location Database,
29 as retrieved on ${SLASH_DATE}.
30 EOF
32 git add "$CHANGESFILE"
34 git commit -a -m "Update geoip files to match ipfire location db, $SLASH_DATE."