docs-common/bin insert-colophon,NONE,1.1

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Sun Jan 15 23:25:39 UTC 2006


Author: pfrields

Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28252/docs-common/bin

Added Files:
	insert-colophon 
Log Message:
Add function to insert colophon entry


--- NEW FILE insert-colophon ---
#!/bin/sh
#
# insert-colophon - Add a new worker to rpm-info.xml
#

. "$(dirname "$0")/fdp-functions"

OUTPUT="${1:-${PWD}/rpm-info.xml.worker$$}"

echo "Current worker list includes the following:"
get_all_workers

while test -z "$FIRSTNAME"; do
    echo -n "Enter contributor's first name: "
    read FIRSTNAME
done

echo -n "Enter contributor's middle initial/name (leave blank for NONE): "
read OTHERNAME

while test -z "$SURNAME"; do
    echo -n "Enter contributor's surname: "
    read SURNAME
done

while test -z "$INITIALS"; do
    echo -n "Enter contributor's initials (or other identifier): "
    read INITIALS
done

while test -z "$EMAIL"; do
    echo -n "Enter contributor's Fedora Project email: "
    read EMAIL
done

echo "You may change these values by hand if necessary in $RPMINFO"

${XSLTPROC} --stringparam firstname "$FIRSTNAME" \
    --stringparam othername "$OTHERNAME" \
    --stringparam surname "$SURNAME" \
    --stringparam initials "$INITIALS" \
    --stringparam email "$EMAIL" \
    "${FDPPKGDIR}/insert-colophon.xsl" "$RPMINFO" | \
    ${XMLFORMAT} ${XMLFOPTS} > ${OUTPUT}
echo "New $RPMINFO written to $OUTPUT"




More information about the Fedora-docs-commits mailing list