public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/
Date: Mon,  7 Nov 2011 12:07:38 +0000 (UTC)	[thread overview]
Message-ID: <2d9090946d3e81a307e0aaf1a9309da4cab837c3.aballier@gentoo> (raw)

commit:     2d9090946d3e81a307e0aaf1a9309da4cab837c3
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  7 12:07:28 2011 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Nov  7 12:07:28 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=2d909094

add script for extracting 9.0 rc

---
 scripts/extract-9.0.sh |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/scripts/extract-9.0.sh b/scripts/extract-9.0.sh
new file mode 100755
index 0000000..66265b4
--- /dev/null
+++ b/scripts/extract-9.0.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+if [[ $# -lt 1 ]]; then
+	echo "You must specify the version of the packages to build."
+	exit 1
+fi
+
+# These are the base packages recognized by original script:
+# base bin contrib crypto etc games gnu include krb5 lib libexec release
+# rescue sbin secure share sys tools ubin usbin
+# Added cddl and compat.
+
+if [[ -z $2 ]]; then
+	dists="bin cddl contrib crypto gnu include lib libexec sbin share usr.bin usr.sbin sys etc rescue "
+else
+	dists="$2"
+fi
+
+MIRROR=${FTPMIRROR:-ftp.FreeBSD.org}
+echo "Using mirror ${MIRROR}"
+
+P=$1
+MY_P=${P/_rc/-RC}
+MY_P=${MY_P/_beta/-BETA}
+echo "Getting version ${P} [${MY_P}].."
+if [[ ${MY_P} == ${P} ]]; then
+	MY_P="${MY_P}-RELEASE"
+fi
+
+echo "Downloading files..."
+wget -nv -c "ftp://${MIRROR}/pub/FreeBSD/releases/i386/i386/${MY_P}/MANIFEST"
+wget -nv -c "ftp://${MIRROR}/pub/FreeBSD/releases/i386/i386/${MY_P}/src.txz"
+echo "Done downloading files."
+
+echo "Repackaging files..."
+tar xf src.txz
+for i in $dists; do
+	echo "  Repackaging source component: $i"
+        pushd usr/src > /dev/null
+        tar cjf ../../freebsd-${i/usr./u}-$P.tar.bz2 $i
+        popd > /dev/null
+done
+echo "Done repackaging sources."
+exit 0



             reply	other threads:[~2011-11-07 12:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 12:07 Alexis Ballier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-14  6:08 [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ Yuta SATOH
2013-10-09 11:15 Yuta SATOH
2014-10-28 12:03 Yuta SATOH
2015-07-11 11:17 Yuta SATOH
2015-07-12  0:09 Yuta SATOH
2015-07-12  4:43 Yuta SATOH
2015-07-12  7:35 Yuta SATOH
2015-07-12 10:52 Yuta SATOH
2015-07-12 12:09 Yuta SATOH
2015-07-12 14:08 Yuta SATOH
2015-07-12 15:58 Yuta SATOH
2015-07-13 12:38 Yuta SATOH
2015-07-13 12:40 Yuta SATOH
2015-08-15  0:47 Yuta SATOH
2015-08-21 12:43 Yuta SATOH
2015-08-22 12:18 Yuta SATOH
2015-08-22 22:57 Yuta SATOH
2016-08-17 12:16 Yuta SATOH
2017-12-07 13:39 Yuta SATOH
2018-01-02 13:39 Yuta SATOH
2018-01-03 11:18 Yuta SATOH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d9090946d3e81a307e0aaf1a9309da4cab837c3.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox