X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=inews.INO;h=99c750a1ee926bbbfa4651a6b3fb20492798d713;hb=9ed3078a8d54c699fe681120e9f0de7ab857babf;hp=a2bbc546091f0514a4e52ee6c5e59974053316ea;hpb=dba7b54b3cc0c7f2a56ec6da37ac86bc80756b4a;p=modbot-ulm.git diff --git a/inews.INO b/inews.INO old mode 100644 new mode 100755 index a2bbc54..99c750a --- a/inews.INO +++ b/inews.INO @@ -1,9 +1,6 @@ #!/bin/sh set -e -#real=false -real=true - export NNTPSERVER=nnrp.chiark.greenend.org.uk export NNTPAUTH='md5cookie1way chiark' @@ -17,11 +14,11 @@ set +e output=` set -e exec 2>&1 - if $real; then + if [ x%DIVERTPOSTINGS% = x ]; then inews -h -Q -R <$tf else (set -e - echo "Newsgroups: %TESTGROUP%" + echo "Newsgroups: %DIVERTPOSTINGS%" sed 's/^Newsgroups:/X-Would-Newsgroups:/' $tf) | inews -h fi ` @@ -31,7 +28,7 @@ set -e if [ $rc = 0 ] then echo 'posted ok!' - $HOME/live/xlog/bin/record posted %GROUP% <$tf + %BASEDIR%/xlog/bin/record posted %GROUP% <$tf exit 0 fi