[shellinabox/el5] Add script to recreate source tarball

Simone Caronni slaanesh at fedoraproject.org
Fri Dec 14 10:15:54 UTC 2012


commit 29586ea501328a6a6bb84eb0a4fd93a3c6ea4e61
Author: Simone Caronni <negativo17 at gmail.com>
Date:   Fri Dec 14 11:15:11 2012 +0100

    Add script to recreate source tarball

 shellinabox-git-checkout.sh |   15 +++++++++++++++
 shellinabox.spec            |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/shellinabox-git-checkout.sh b/shellinabox-git-checkout.sh
new file mode 100644
index 0000000..4227f6d
--- /dev/null
+++ b/shellinabox-git-checkout.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+VERSION=2.14
+
+git clone git://github.com/pythonanywhere/shellinabox_fork.git shellinabox
+cd shellinabox
+
+REVISION=$(git log | head -n1 | awk '{print $2}' | cut -c 1-8)
+
+git archive --format=tar --prefix=shellinabox-${VERSION}/ master | bzip2 > shellinabox-${VERSION}-git${REVISION}.tar.bz2
+
+mv -f shellinabox-${VERSION}-git${REVISION}.tar.bz2 ..
+cd ..
+rm -fr shellinabox
+
diff --git a/shellinabox.spec b/shellinabox.spec
index 4296336..5dc2397 100644
--- a/shellinabox.spec
+++ b/shellinabox.spec
@@ -12,6 +12,7 @@ Source0:        http://shellinabox.googlecode.com/files/%{name}-%{version}-%{com
 Source1:        shellinaboxd.sysconfig
 Source2:        shellinaboxd.service
 Source3:        shellinaboxd.init
+Source99:       shellinabox-git-checkout.sh
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openssl-devel


More information about the scm-commits mailing list