local branch=AC-branch
if git show-ref -q refs/remotes/origin/$branch; then
git fetch --tags
- if [ -z "$(git tag --points-at $branch 2>/dev/null)" ]; then
+ if [ -z "$(git tag --points-at origin/$branch 2>/dev/null)" ]; then
echo >&2 "There's no tag pointing to current $branch; refusing to delete branch"
return 1
fi
fi
git tag -f $branch
- git push origin $branch
+ git push -f origin $branch
}
# undo spec utf8
fi # no $dist set
alias adif="dif -x '*.m4' -x ltmain.sh -x install-sh -x depcomp -x 'Makefile.in' -x compile -x 'config.*' -x configure -x missing -x mkinstalldirs -x autom4te.cache"
-alias pclean="sed -i~ -e '/^\(?\|=\+$\|unchanged:\|diff\|only\|Only\|Files\|Common\|Index:\|RCS file\|retrieving\)/d'"
+alias pclean="sed -i~ -e '/^\(?\|=\+$\|unchanged:\|diff\|only\|Only\|Tylko\|Files\|Common\|Index:\|RCS file\|retrieving\)/d'"
# makes diff from PLD CVS urls
# requires: cvs, tee
(builtin cd "$dir"; dif $diff{~,})
}
+# spec name from NVR
+rpm2spec() {
+ sed -re 's,^(.+)-[^-]+-[^-]+$,\1.spec,'
+}
+
rpmb() {
local SPEC SPECDIR arg
for arg in "$@"; do