summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2004-11-24 13:13:54 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2004-11-24 13:13:54 +0000
commit48e36788a644a38c0cb8e77a7dd2ed9accc31deb (patch)
treef7297095191f7e53372ef2b3a2c5393798f4f9e2 /z-distfiles
parentFixed scripts gw (diff)
downloadmisc-48e36788a644a38c0cb8e77a7dd2ed9accc31deb.tar.gz
misc-48e36788a644a38c0cb8e77a7dd2ed9accc31deb.tar.bz2
misc-48e36788a644a38c0cb8e77a7dd2ed9accc31deb.zip
New horde rc1 and nntprss
svn path=/z-distfiles/; revision=70
Diffstat (limited to 'z-distfiles')
-rwxr-xr-xz-distfiles/scripts-gw-1.1/spam-report22
-rwxr-xr-xz-distfiles/scripts-gw-1.1/svn-add7
-rwxr-xr-xz-distfiles/scripts-gw-1.1/svn-del7
3 files changed, 36 insertions, 0 deletions
diff --git a/z-distfiles/scripts-gw-1.1/spam-report b/z-distfiles/scripts-gw-1.1/spam-report
new file mode 100755
index 0000000..fe67e05
--- /dev/null
+++ b/z-distfiles/scripts-gw-1.1/spam-report
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+if [ -d "${1}" ]
+ then
+ MAILS="`ls ${1}`"
+ if [ ! -z "${MAILS}" ]
+ then
+ for MAIL in "${MAILS}"
+ do
+ echo "Report ${1}/${MAIL}"
+ spamassassin -r < "${1}/${MAIL}"
+ echo "Delete ${1}/${MAIL}"
+ rm "${1}/${MAIL}"
+ done
+ fi
+ if [ -z "${MAILS}" ]
+ then
+ echo "Nothing in ${1} to report!"
+ fi
+fi
+
+
diff --git a/z-distfiles/scripts-gw-1.1/svn-add b/z-distfiles/scripts-gw-1.1/svn-add
new file mode 100755
index 0000000..0368725
--- /dev/null
+++ b/z-distfiles/scripts-gw-1.1/svn-add
@@ -0,0 +1,7 @@
+#/bin/bash
+
+svn status | grep '^?' | sed -e 's/^?//'
+
+if [ "${1}" = "do" ]; then
+ svn status | grep '^?' | sed -e 's/^?//' | xargs svn add
+fi
diff --git a/z-distfiles/scripts-gw-1.1/svn-del b/z-distfiles/scripts-gw-1.1/svn-del
new file mode 100755
index 0000000..812d99a
--- /dev/null
+++ b/z-distfiles/scripts-gw-1.1/svn-del
@@ -0,0 +1,7 @@
+#/bin/bash
+
+svn status | grep '^!' | sed -e 's/^!//'
+
+if [ "${1}" = "do" ]; then
+ svn status | grep '^!' | sed -e 's/^!//' | xargs svn del
+fi