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"
12 if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
13 echo "Working directory is not clean."
19 "${CMDDIR}/update_geoip.sh"
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}.
32 git add
"$CHANGESFILE"
34 git commit
-a -m "Update geoip files to match ipfire location db, $SLASH_DATE."