]> git.sesse.net Git - vlc/commitdiff
contrib: support using a specific commit tag in download_git
authorRafaël Carré <funman@videolan.org>
Thu, 24 Nov 2011 22:08:20 +0000 (17:08 -0500)
committerRafaël Carré <funman@videolan.org>
Thu, 24 Nov 2011 22:08:49 +0000 (17:08 -0500)
contrib/src/main.mak

index f4dbd5a5137da8e2b3cd6197de6b0b0c566b7e9c..47a55b2d721d2671c96768613373aa0384b658fa 100644 (file)
@@ -208,6 +208,7 @@ HOSTVARS_PIC := $(HOSTTOOLS) \
 download_git = \
        rm -Rf $(@:.tar.xz=) && \
        $(GIT) clone $(2:%=--branch %) $(1) $(@:.tar.xz=) && \
+       (cd $(@:.tar.xz=) && $(GIT) checkout $(3:%= %)) && \
        rm -Rf $(@:%.tar.xz=%)/.git && \
        (cd $(dir $@) && \
         tar cvJ $(notdir $(@:.tar.xz=))) > $@ && \