From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Bash script to update - only make when update there? Date: Tue, 10 Dec 2013 18:00:58 +0100 Message-ID: <87ppp4ljxx.fsf@Rainer.invalid> References: <52A6D452.3030908@krugs.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqQgO-0005ld-N1 for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 12:01:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqQgI-0001EC-J0 for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 12:01:16 -0500 Received: from plane.gmane.org ([80.91.229.3]:46139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqQgI-0001E5-Cz for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 12:01:10 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VqQgF-0000Ur-U6 for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 18:01:07 +0100 Received: from pd9eb28c3.dip0.t-ipconnect.de ([217.235.40.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Dec 2013 18:01:07 +0100 Received: from Stromeko by pd9eb28c3.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Dec 2013 18:01:07 +0100 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 Rainer M Krug writes: > git checkout master > make update This doesn't update at all since you never do a "git pull" on master. > which works nicely, but I would like to only execute the "make update" > if git updated something - I am sure this is possible, but how? I really don't see why you'd need to use a shell script for that (instead of adding your own target in local.mk), but that aside you'd want to compare the SHA1 of your checkout with the SHA1 of your last install (for instancefrom org-version.el). If there wasn't an update these two would be identical. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada