blob: 0ed995b04b3616453bfd4db9d1297079b1f36b06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/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
if ! ( set | grep "^OTHERNAME" >/dev/null ); then
echo -n "Enter contributor's middle initial/name (leave blank for NONE): "
read OTHERNAME
fi
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"
|