tarball.sh: align version sedding with ebuild
authorFabian Groffen <grobian@gentoo.org>
Thu, 10 Feb 2011 18:43:18 +0000 (19:43 +0100)
committerFabian Groffen <grobian@gentoo.org>
Thu, 10 Feb 2011 18:43:18 +0000 (19:43 +0100)
tarball.sh

index fd58e3ba84cc1a4f39b2b70ec662ba36b0e5cf40..9bfc4097ef4ba3c8515f7d7b6869e6aac87e5e1b 100755 (executable)
@@ -27,7 +27,8 @@ fi
 install -d -m0755 ${DEST}
 rsync -a --exclude='.git' --exclude='.hg' . ${DEST}
 sed -i -e '/^VERSION=/s/^.*$/VERSION="'${V}-prefix'"/' ${DEST}/pym/portage/__init__.py
-sed -i -e "s/VERSION/${V}-prefix/g" ${DEST}/man/emerge.1
+sed -i -e "1s/VERSION/${V}-prefix/" ${DEST}/doc/fragment/version
+sed -i -e "1s/VERSION/${V}-prefix/" ${DEST}/ man/*
 sed -i -e "s/@version@/${V}/" ${DEST}/configure.in
 
 cd ${DEST}