From 430c1c975d617737bb5cc6e454336f7c1d1b00ff Mon Sep 17 00:00:00 2001 From: antona Date: Sat, 21 May 2005 13:05:24 +0000 Subject: [PATCH] Remove some BK specific files. --- BitKeeper/etc/config | 11 --- BitKeeper/etc/logging_ok | 1 - BitKeeper/triggers/post-incoming.mail | 88 ----------------------- BitKeeper/triggers/post-outgoing.ciabot | 96 ------------------------- 4 files changed, 196 deletions(-) delete mode 100644 BitKeeper/etc/config delete mode 100644 BitKeeper/etc/logging_ok delete mode 100644 BitKeeper/triggers/post-incoming.mail delete mode 100644 BitKeeper/triggers/post-outgoing.ciabot diff --git a/BitKeeper/etc/config b/BitKeeper/etc/config deleted file mode 100644 index d704163e..00000000 --- a/BitKeeper/etc/config +++ /dev/null @@ -1,11 +0,0 @@ -description: Developmental Linux NTFS userspace library and utilities -category: System Environment/Base -homepage: http://linux-ntfs.sf.net/ -bkweb: http://linux-ntfs.bkbits.net:8080/ntfsprogs-devel -contact: Anton Altaparmakov -email: aia21@cantab.net -logging: logging@openlogging.org -logging_ask: no -checkout: get -compression: gzip -autofix: yes diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok deleted file mode 100644 index 5e360a8c..00000000 --- a/BitKeeper/etc/logging_ok +++ /dev/null @@ -1 +0,0 @@ -aia21@cantab.net diff --git a/BitKeeper/triggers/post-incoming.mail b/BitKeeper/triggers/post-incoming.mail deleted file mode 100644 index ef72ec4b..00000000 --- a/BitKeeper/triggers/post-incoming.mail +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/sh -# -# post-incoming.mail - A BitKeeper trigget to send incoming ChangeSets to the -# linux-ntfs-cvs mailing list, one ChangeSet per email. -# -# Copyright (c) 2005 Yura Pakhuchiy -# Copyright (c) 2005 Anton Altaparmakov -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -######################################################################### - -# This script should only be run on successful incoming pushes in the -# repository on bkbits.net. -if [ "x${BK_SIDE}" != "xserver" ]; then - exit 0 -fi -if [ "x${BK_EVENT}" != "xincoming push" ]; then - exit 0 -fi -if [ "x${BK_STATUS}" != "xOK" ]; then - exit 0 -fi -if [ -z "$(echo ${BKD_HOST} | grep bkbits.net)" ]; then - exit 0 -fi - -EMAIL="ntfs-cvs " -REPLYTO="ntfs-dev " - -# For each ChangeSet, send an email. -bk changes -f -d'$unless(:MERGE:){:CSETREV:\n}' - < "${BK_CSETLIST}" 2>/dev/null | while read rev; do - -SUBJECT="Subject: bk-$(echo ${BKD_ROOT} 2>/dev/null | sed "s#.*/##" 2>/dev/null): ChangeSet@${rev} by ${BK_USER}@${BK_HOST}" - -{ -bk changes -f -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' -r$rev 2>/dev/null | -bk -R prs -h -d'$unless(:MERGE:){ChangeSet@:I:, 20:Dy:-:Dm:-:Dd: :T::TZ:, :P:@:HOST:\n}' - 2>/dev/null - -cat </dev/null | diffstat -p1 2>/dev/null - -cat </dev/null - -cat </dev/null - -cat </dev/null - -} | mail -R "\"${REPLYTO}\"" -s "\"${SUBJECT}\"" "\"${EMAIL}\"" - -done - -exit 0 diff --git a/BitKeeper/triggers/post-outgoing.ciabot b/BitKeeper/triggers/post-outgoing.ciabot deleted file mode 100644 index 8fc70c1d..00000000 --- a/BitKeeper/triggers/post-outgoing.ciabot +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh -# -# post-outgoing -- catch and format BitKeeper repository events and mail them to the CIA bot. -# -# Copyright (C) 2003 Leonard Norrgard -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -######################################################################### - -# Submit bkbits.net repository changes to the CIA bot, who in turn -# forwards the messages to #commits on IRC and a project IRC channel, -# as configured below. If your project isn't on bkbits.net, you may need to -# make several changes in the script itself. See "bk help triggers" for the -# basic documentation to how this works. There's a trick: bkbits.net don't -# have triggers enabled, -# -# It tries to makes sure that only pushes to public repositories get broadcasted. -# -# 1) Edit the channel setting below. -# 2) Put this script in a file named post-outgoing.ciabot in -# BitKeeper/triggers/pre-apply.ciabot in your project. -# 3) Check it into your repository on bkbits.net -# 4) The next time anyone pulls the project, they'll get the script. -# From then on, BitKeeper does the rest. -# 4) ? -# 5) Profit! :^) - -# --- begin config section --- -# -# Note: irc network name ignored for now, but must be included. -# What you say here end up as a prefix on each row of your logs -# on #commits. You must use the name of your projects IRC channel in -# order to have the invite the bot there. -# -# example: -# IRCCHANNEL=irc.freenode.net/ourprojectchannel -IRCCHANNEL=irc.freenode.net/ntfs - -# The email address where we send the commit messages. -COMMITADDRESS=commits@picogui.org - -# -# --- end config section --- -# -###################################################################### - -if [ X$BK_STATUS = XDRYRUN -o X$BK_STATUS = XNOTHING ] -then exit 0 -fi - -# In order to make sure only pushes to public BitKeeper repositories -# are broadcasted to #commits, we check that a) the parent repository -# is on bkbits.net and b) we are the client. - -# Is parent a public BitKeeper repository at bkbits.net? -if [ -z "`bk parent|grep bkbits.net/`" ] -then exit 0 -fi - -if [ $BK_SIDE != client ] -then exit 0 -fi - -# Display info about incoming and outgoing csets. - -U=$BK_USER -H=$BK_HOST -R=$BK_ROOT - -( -U_OUT="user={light blue}${U}@${H}{normal}" -R_OUT=`echo $R | sed "s,.*/,,"` - -echo repository={green}${R_OUT}{normal} $U_OUT - -# See "bk help prs" for documentation on the formatting string. -if [ X$BK_CSETLIST != X ] -then ( - bk changes -v -d'$if(:GFILE:=ChangeSet){{orange}ChangeSet@:REV:{normal} tags=$if(:TAG:){{red}:TAG:{normal}} $if(:C:){:C:}\n}$unless(:GFILE:=ChangeSet){* :GFILE:$if(:C:){: $each(:C:){(:C:)}}\n}' - < $BK_CSETLIST - ) -fi -) | mail -s "Announce `echo -n $IRCCHANNEL | sed 's,.*/,,'`" $COMMITADDRESS -exit 0