[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installer Translation Status



Quoting Otavio Salvador (otavio@ossystems.com.br):
> Hello,
> 
> I just uploaded installer without updating the translation-status file.
> 
> I did it because I didn't figure the reason why versions aren't
> matching with the script. One package, that is the quik-installer, is
> due the NMU but others looks to have been tagged without the epoch and
> this confuses the script.
> 
> It looks like debcommit put the epoch by default so the packages
> lacking the epoch might have been tagged byhand; since I do plan a new
>  installer upload soon I did not hold it until we sorted it out but
> wanted to inform the list about  the issue.


The packages I released were tagged with the attached script,
contributed by Joey back in.....a long time ago..:-)

Apparently, it does strip the epoch when calculating the tag. I guess
this was on purpose.


    #!/bin/sh -e
# Commit changes, using the current changelog as the message.
if [ -d CVS ]; then
	PROG=cvs
elif [ -d .svn ]; then
	PROG=svn 
else
	echo "not in a cvs or subversion directory" >&2
	exit 1
fi
echo "Committing with $PROG ..."

if [ "$1" = "release" ] && [ -e debian/changelog ]; then
	if head -1 debian/changelog | grep -q UNRELEASED; then
		echo "Changelog says it's UNRELEASED, bud."
		exit 1
	fi
	version=`dpkg-parsechangelog | grep Version: | cut -f 2 -d ' '`
	$PROG commit -m "releasing version $version" debian/changelog
fi
	
if [ "$PROG" = svn ]; then
	# use new part of changelog as commit entry
	MSG=$(svn diff debian/changelog | grep '^\+  ' | sed 's/^+//')
	if [ -n "$MSG" ]; then
		$PROG commit -m "$(svn diff debian/changelog | grep '^\+  ' | sed 's/^+//')"
	else
		$PROG commit -m "`dpkg-parsechangelog | grep '^  '`"
	fi
else
	# cvs is too slow for that
	$PROG commit -m "`dpkg-parsechangelog | grep '^  '`"
fi

if [ "$1" = "release" ]; then
	# Generate the tag. This is compatable with the tag cvs-buildpackage
	# uses except for debian native packages.
	newversion=`expr $version : '[0-9]:\(.*\)'` 2>/dev/null || true
	if [ "$newversion" ]; then
		version=$newversion
	fi
	if [ -d CVS ]; then
		# escape tag for cvs
		if [ "`expr $version : '.*-.*'`" -gt 0 ]; then
			tag="debian_version_$version"
		else
			tag="version_$version"
		fi
		tag=`echo "$tag" | tr . _`
		cvs tag -f $tag
	elif [ -d .svn ]; then
		tag="$version"
		echo "svn copy $(svnpath) $(svnpath tags)/$tag"
		if ! svn copy $(svnpath) $(svnpath tags)/$tag -m "tagging version $version"; then
			echo "svn mkdir $(svnpath tags)"
			svn mkdir "$(svnpath tags)" -m "create tag subdirectory"
			echo "svn copy $(svnpath) $(svnpath tags)/$tag"
			svn copy $(svnpath) $(svnpath tags)/$tag -m "tagging version $version"
		fi
	fi
fi

Attachment: signature.asc
Description: Digital signature


Reply to: