#!/bin/bash set -e pushd packages/searxng >/dev/null pushd searxng >/dev/null git fetch date=$(git show -s --date=format:%Y.%m.%d --format=%cd) commit=$(git show -s --format=%h) popd >/dev/null sed -i "s/_date=.*/_date=$date/" PKGBUILD sed -i "s/_commit=.*/_commit=$commit/" PKGBUILD popd >/dev/null echo rebuilding python packages/local.py searxng