[emacs-evil/f20] Added script to get sources

Sébastien Willmann wilqu at fedoraproject.org
Mon Dec 23 10:58:00 UTC 2013


commit 23d6572624661edc7c9dcda0f5c36a2d3727c428
Author: Sébastien Willmann <sebastien.willmann at gmail.com>
Date:   Sun Dec 22 22:48:15 2013 +0100

    Added script to get sources

 emacs-evil.spec |    9 +++------
 get_source.sh   |   16 ++++++++++++++++
 2 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/emacs-evil.spec b/emacs-evil.spec
index 29b3130..3eb2d74 100644
--- a/emacs-evil.spec
+++ b/emacs-evil.spec
@@ -9,13 +9,10 @@ Summary(fr):	Surcouche vi extensible pour Emacs
 
 License:	GPLv3+	
 URL:		http://emacswiki.org/emacs/Evil	
-## Sources are checked out with git
-# git clone git://gitorious.org/evil/evil.git
-# cd evil
-# git checkout 1.0.1
-# cd ..
-# tar cJf evil-1.0.1.tar.xz evil
+# Sources are checked out with git
 Source0:	%{pkg}-%{version}.tar.xz
+# Script to get the sources
+Source1:    get_source.sh
 
 BuildArch:	noarch
 BuildRequires:	emacs
diff --git a/get_source.sh b/get_source.sh
new file mode 100644
index 0000000..8909fd3
--- /dev/null
+++ b/get_source.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/sh
+
+CLONE_DIR=`mktemp -d evil-clone-XXXXXXX`
+
+VERSION=`grep Version emacs-evil.spec | awk '{print $2}'`
+
+pushd $CLONE_DIR
+git clone git://gitorious.org/evil/evil.git
+pushd evil
+git checkout $VERSION
+popd
+popd
+
+tar cJf evil-${VERSION}.tar.xz -C $CLONE_DIR evil
+
+rm -rf $CLONE_DIR


More information about the scm-commits mailing list