use xmppc for git-send-xmpp
Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>
このコミットが含まれているのは:
コミット
7b35faee45
7
README
7
README
|
@ -2,3 +2,10 @@ git-crap
|
||||||
========
|
========
|
||||||
Let's git some free crap!
|
Let's git some free crap!
|
||||||
These scripts are sort of inspired by git-send-email & co.
|
These scripts are sort of inspired by git-send-email & co.
|
||||||
|
|
||||||
|
* git-send-paste
|
||||||
|
* Depends on nc(1)
|
||||||
|
* It assumes a termbin instance is running on port 9999
|
||||||
|
|
||||||
|
* git-send-xmpp
|
||||||
|
* Depends on xmppc (git@codeberg.org:Anoxinon_e.V./xmppc)
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $KyokoNet: git-send-xmpp, v0.0.1 2022/11/11 22:14:55 akoizumi Exp $
|
# $KyokoNet: git-send-xmpp, v0.0.2 2022/11/13 22:14:55 akoizumi Exp $
|
||||||
#
|
#
|
||||||
# Send git patches over the XMPP protocol
|
# Send git patches over the XMPP protocol
|
||||||
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
|
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
|
||||||
|
@ -14,9 +14,9 @@ EOF
|
||||||
for arg; do
|
for arg; do
|
||||||
case $arg in
|
case $arg in
|
||||||
-h) usage ;;
|
-h) usage ;;
|
||||||
--pass=*) XMPPBRIDGE_PASSWORD="${arg#*=}" ;;
|
--pass=*) pass="${arg#*=}" ;;
|
||||||
--user=*) XMPPBRIDGE_JID="${arg#*=}" ;;
|
--user=*) user="${arg#*=}" ;;
|
||||||
--target=*) XMPPBRIDGE_PEER_JID="${arg#*=}" ;;
|
--target=*) target="${arg#*=}" ;;
|
||||||
--diff=*) diff="${arg#*=}" ;;
|
--diff=*) diff="${arg#*=}" ;;
|
||||||
*-*) printf "Unknown option %s\n" "$arg" ;;
|
*-*) printf "Unknown option %s\n" "$arg" ;;
|
||||||
*=*) export "${arg:?}" ;;
|
*=*) export "${arg:?}" ;;
|
||||||
|
@ -24,13 +24,10 @@ for arg; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -z $XMPPBRIDGE_PASSWORD && -z $XMPPBRIDGE_JID && -z $XMPPBRIDGE_PEER_JID && -z $diff ]; then
|
if [ -z $pass && -z $user && -z $target && -z $diff ]; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
printf "Sending patch file %s to recipient %s over XMPP\n" "${diff}" "${XMPPBRIDGE_PEER_JID}"
|
printf "Sending patch file %s to recipient %s over XMPP\n" "${diff}" "${target}"
|
||||||
export XMPPBRIDGE_JID
|
cat $diff | xmppc --jid ${user} --pwd ${pass} -m message chat ${target}
|
||||||
export XMPPBRIDGE_PASSWORD
|
|
||||||
export XMPPBRIDGE_PEER_JID
|
|
||||||
cat $diff | xmppbridge
|
|
||||||
fi
|
fi
|
||||||
|
|
読み込み中…
新しいイシューから参照