From d9fc4acc572c6647a4f27b838d35d27d805d190e Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sun, 28 Aug 2005 08:37:44 +0000 Subject: Migration (without history) of the current stable line to subversion. svn path=/main/branches/2.0/; revision=1941 --- tarball.sh | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 tarball.sh (limited to 'tarball.sh') diff --git a/tarball.sh b/tarball.sh new file mode 100755 index 000000000..254955c44 --- /dev/null +++ b/tarball.sh @@ -0,0 +1,58 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-src/portage/Attic/tarball.sh,v 1.181.2.2 2005/05/01 16:04:51 jstubbs Exp $ + +if [ -z "$1" ]; then + echo + echo "You need to have the version specified." + echo "e.g.: $0 2.0.39-r37" + echo + exit 0 +fi + +export PKG="portage" +export TMP="/tmp" +export V="$1" +export DEST="${TMP}/${PKG}-${V}" +export PREVEB="2.0.49_pre2" + +./tabcheck.py bin/emerge `find ./ -type f -name '*.py'` + +if [ -e $TMP/${PKG}-${V} ]; then + echo EXISTS ALREADY + exit 1 +fi + +rm -rf ${DEST} +install -d -m0755 ${DEST} +#get any binaries out of the way +cd src/sandbox-1.1 +make clean +cd ../.. +for x in bin cnf man pym src +do + cp -ax $x ${DEST} +done +# Clean invalid sandbox sources +rm -rf ${DEST}/src/{sandbox,sandbox-dev} +cp ${DEST}/pym/portage.py ${DEST}/pym/portage.py.orig +sed '/^VERSION=/s/^.*$/VERSION="'${V}'"/' < ${DEST}/pym/portage.py.orig > ${DEST}/pym/portage.py +cp ${DEST}/man/emerge.1 ${DEST}/man/emerge.1.orig +sed "s/##VERSION##/${V}/g" < ${DEST}/man/emerge.1.orig > ${DEST}/man/emerge.1 +rm ${DEST}/pym/portage.py.orig ${DEST}/man/emerge.1.orig +rm ${DEST}/man/*.eclass.5 + +sed -i -e "s:\t: :g" ChangeLog +cp ChangeLog ${DEST} + +cd ${DEST} +find -name CVS -exec rm -rf {} \; +find -name '*~' -exec rm -rf {} \; +find -name '*.pyc' -exec rm -rf {} \; +find -name '*.pyo' -exec rm -rf {} \; +chown -R root:root ${DEST} +cd $TMP +rm -f ${PKG}-${V}/bin/emerge.py ${PKG}-${V}/bin/{pmake,sandbox} ${PKG}-${V}/{bin,pym}/'.#'* ${PKG}-${V}/{bin,pym}/*.{orig,diff} ${PKG}-${V}/{bin,pym}/*.py[oc] +tar cjvf ${TMP}/${PKG}-${V}.tar.bz2 ${PKG}-${V} + +#scp ${TMP}/${PKG}-${V}.tar.bz2 carpaski@twobit.net:/home/html/gentoo/portage/ +#scp ${TMP}/${PKG}-${V}.tar.bz2 carpaski@zarquon.twobit.net:/home/www/localhost/htdocs/gentoo/portage/ -- cgit v1.2.3-65-gdbad