https://github.com/TEIC/TEI
Tip revision: 6f86eb3006d815bb183e0d0d8f94a9b3357d38a4 authored by Syd Bauman on 10 September 2014, 03:37:43 UTC
Tag this version which has Schematron code in biblStruct.xml for deprecating <idno> as a direct child of <biblStruct>. I can't implement this for the upcoming release, as we have 29 cases of biblStruct/idno in P5's own bibliogrraphy.
Tag this version which has Schematron code in biblStruct.xml for deprecating <idno> as a direct child of <biblStruct>. I can't implement this for the upcoming release, as we have 29 cases of biblStruct/idno in P5's own bibliogrraphy.
Tip revision: 6f86eb3
mydch
#!/bin/sh
NEWVERSION=`cat VERSION`
DATE=`date "+%a, %d %b %Y %H:%M:%S %z"`
if [ ! -f $1 ]
then
DIR=`dirname $1`
PACKAGE=`(cd $DIR; grep Source: control | awk '{print $2}')`
echo "$PACKAGE ($NEWVERSION) debian; urgency=low" > $1
echo "" >> $1
echo ' * release generated from TEI source. We do not maintain a history here of releases' >> $1
echo "" >> $1
echo " -- TEI <editors@www.tei-c.org> $DATE" >> $1
else
OLDVERSION=`head -1 $1 | awk '{print $2}' | tr -d '/\(\)/'`
PACKAGE=`head -1 $1 | awk '{print $1}' `
NAME=`grep -- "^ --" $1| head -1 | sed 's/ -- \(.*\)<.*/\1/'`
EMAIL=`grep -- "^ --" $1 | head -1 | sed 's/.*<\(.*\)>.*/\1/'`
if [ $OLDVERSION = $NEWVERSION ]
then
echo "version in Debian ($OLDVERSION) is the same as $NEWVERSION"
else
echo update with $NEWVERSION
echo "$PACKAGE ($NEWVERSION) natty; urgency=low" > /tmp/changelog
echo "" >> /tmp/changelog
echo " * new release from upstream" >> /tmp/changelog
echo "" >> /tmp/changelog
echo " -- $NAME <$EMAIL> $DATE" >> /tmp/changelog
echo "" >> /tmp/changelog
cat $1 >> /tmp/changelog
mv /tmp/changelog $1
fi
fi