From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miro Bezjak Subject: makefile target: update to latest release? Date: Fri, 8 Nov 2013 19:38:00 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b34364eeab14a04eaaeb0a7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ver0z-0003Jr-AD for emacs-orgmode@gnu.org; Fri, 08 Nov 2013 13:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Veqx7-00074S-Dw for emacs-orgmode@gnu.org; Fri, 08 Nov 2013 13:42:41 -0500 Received: from mail-ve0-x22c.google.com ([2607:f8b0:400c:c01::22c]:34820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Veqx7-00074H-6Z for emacs-orgmode@gnu.org; Fri, 08 Nov 2013 13:38:41 -0500 Received: by mail-ve0-f172.google.com with SMTP id oz11so494819veb.3 for ; Fri, 08 Nov 2013 10:38:40 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b34364eeab14a04eaaeb0a7 Content-Type: text/plain; charset=UTF-8 Hi all, before attemting to implement the script I was wondering if there exists a makefile target that updates the repository to the latest release? I was thinking something along the lines of: ---------------------------------------- current=... # determine the current version git checkout master git pull origin master latest=... # determine latest release from git log git log --oneline $current...$latest git checkout --branch $latest $latest make clean autoloads ---------------------------------------- I looked at `mk/targets.mk` but didn't find anything similar. Kind regards, Miro --047d7b34364eeab14a04eaaeb0a7 Content-Type: text/html; charset=UTF-8
Hi all,

before attemting to implement the script I was wondering if there exists a
makefile target that updates the repository to the latest release? I was
thinking something along the lines of:

----------------------------------------
current=... # determine the current version

git checkout master
git pull origin master

latest=... # determine latest release from git log

git log --oneline $current...$latest
git checkout --branch $latest $latest

make clean autoloads
----------------------------------------

I looked at `mk/targets.mk` but didn't find anything similar.

Kind regards,
Miro
--047d7b34364eeab14a04eaaeb0a7--