public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-alt r1696 - trunk/baselayout-prefix
@ 2011-03-31 17:47 Fabian Groffen (grobian)
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen (grobian) @ 2011-03-31 17:47 UTC (permalink / raw
  To: gentoo-commits

Author: grobian
Date: 2011-03-31 17:47:50 +0000 (Thu, 31 Mar 2011)
New Revision: 1696

Added:
   trunk/baselayout-prefix/tarball.sh
Log:
first shot at a small script to create a release tarball

Added: trunk/baselayout-prefix/tarball.sh
===================================================================
--- trunk/baselayout-prefix/tarball.sh	                        (rev 0)
+++ trunk/baselayout-prefix/tarball.sh	2011-03-31 17:47:50 UTC (rev 1696)
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# yay, this dir is not the top-dir, so no .hg dir not to copy
+
+REV=$(hg parent --template '{rev}')
+TMPDIR=/var/tmp/baselayout-prefix.$$/baselayout-prefix-1.12.5.${REV}
+
+MODS=$(hg status . | wc -l)
+
+if [[ ${MODS} != 0 ]] ; then
+	echo "source tree isn't clean, cowardly refusing to create tarball"
+	exit 1
+fi
+
+mkdir -p "${TMPDIR}"
+
+rsync -av . "${TMPDIR}"/
+
+# not sure if --xz is a good idea, baselayout-prefix is necessary quite
+# early in the bootstrap process
+tar -jcf baselayout-prefix-1.12.5.${REV}.tar.bz2 -C ${TMPDIR%/*} \
+	${TMPDIR##*/}
+
+rm -Rf "${TMPDIR}"


Property changes on: trunk/baselayout-prefix/tarball.sh
___________________________________________________________________
Added: svn:executable
   + *




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-31 17:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 17:47 [gentoo-commits] gentoo-alt r1696 - trunk/baselayout-prefix Fabian Groffen (grobian)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox