scripts/repo-add.sh: global reporel counter implementation.

pkgrel=reporel support.