DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T x

⟦7376b1642⟧ TextFile

    Length: 1172 (0x494)
    Types: TextFile
    Names: »xalparse.sh«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦bfebc70e2⟧ »EurOpenD3/mail/sendmail-5.65b+IDA-1.4.3.tar.Z« 
        └─⟦f9e35cd84⟧ 
            └─⟦this⟧ »sendmail/ida/aux/xalparse.sh« 

TextFile

#! /bin/sh -e
#########################################################################
# Script to take the output of 'xalparse' and put it into a form	#
# suitable for building alias files with non-local aliases, and with	#
# the improved IDA-1.4.1 configuration which implements the new		#
# method.								#
#									#
# Note.  This assumes that MAILERTABLE has an entry:			#
# LOCAL!localhost	new.aliases.uucp				#
# (where new.aliases.uucp represents the $DUMMY defined below).		#
#########################################################################

# The location of the program.
XALPARSE=/usr/lib/mail/xalparse
# Name of dummy domain for non-local aliases.
DUMMY=al.ias.UUCP
# Define names of scratch files.
ALIAS=/tmp/ALIAS.$$
GENERIC=/tmp/GENERIC.$$
#
#
if [ $# != 3 ] ; then
	echo "Syntax: $0 sourcefile aliasfile genericsfile"
	exit 1
fi
#
$XALPARSE $1 $ALIAS $GENERIC
cat - << EOF > $2
### This file built by xalparse from sourcefile $1
###
### WARNING: DO NOT EDIT THIS FILE
###
### Your changes will go away.  Instead edit the sourcefile.
###
EOF

cat $2 $GENERIC > $3

sed 's/^\([^:]*\)@\(.*\):/\1%\2@'$DUMMY:/   $ALIAS >> $2

rm -f $ALIAS $GENERIC