aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tarball.sh')
-rwxr-xr-xtarball.sh58
1 files changed, 58 insertions, 0 deletions
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/