[Modulinux-commits] SF.net SVN: modulinux:[13] trunk/scripts
Status: Planning
Brought to you by:
serisman
|
From: <ser...@us...> - 2009-12-15 06:20:23
|
Revision: 13
http://modulinux.svn.sourceforge.net/modulinux/?rev=13&view=rev
Author: serisman
Date: 2009-12-15 06:20:13 +0000 (Tue, 15 Dec 2009)
Log Message:
-----------
changed 'git' to download to local archive file
Modified Paths:
--------------
trunk/scripts/Makefile.in
trunk/scripts/foundation/libnl/libnl.mk
Added Paths:
-----------
trunk/scripts/download_git.sh
Modified: trunk/scripts/Makefile.in
===================================================================
--- trunk/scripts/Makefile.in 2009-12-15 05:44:23 UTC (rev 12)
+++ trunk/scripts/Makefile.in 2009-12-15 06:20:13 UTC (rev 13)
@@ -11,6 +11,7 @@
CAT:=bzcat
DOWNLOAD:=scripts/download.sh
+DOWNLOAD_GIT:=scripts/download_git.sh
PATCH:=scripts/patch.sh
LOG:=scripts/log.sh
Added: trunk/scripts/download_git.sh
===================================================================
--- trunk/scripts/download_git.sh (rev 0)
+++ trunk/scripts/download_git.sh 2009-12-15 06:20:13 UTC (rev 13)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+rm -r -f $1/$4
+mkdir $1/$4
+cd $1/$4
+git clone $2 .
+git checkout $3
+rm -r -f .git
+cd $1
+tar -cjf $4.tar.bz2 $4
+rm -r -f $1/$4
+
Property changes on: trunk/scripts/download_git.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/scripts/foundation/libnl/libnl.mk
===================================================================
--- trunk/scripts/foundation/libnl/libnl.mk 2009-12-15 05:44:23 UTC (rev 12)
+++ trunk/scripts/foundation/libnl/libnl.mk 2009-12-15 06:20:13 UTC (rev 13)
@@ -7,15 +7,15 @@
FOUNDATION_LIBNL_VERSION:=2.0
FOUNDATION_LIBNL_GIT_VERSION:=ff76549013c31082d303b3feef755bbd35e13ec6
FOUNDATION_LIBNL_GIT_REPO:=git://git.kernel.org/pub/scm/libs/netlink/libnl.git
+FOUNDATION_LIBNL_ARCHIVE:=libnl-$(FOUNDATION_LIBNL_VERSION).tar.bz2
FOUNDATION_LIBNL_SOURCE_DIR:=$(SOURCE_DIR)/libnl-$(FOUNDATION_LIBNL_VERSION)
FOUNDATION_LIBNL_BUILD_DIR:=$(FOUNDATION_BUILD_DIR)/libnl-$(FOUNDATION_LIBNL_VERSION)
-$(FOUNDATION_LIBNL_SOURCE_DIR)/.unpacked:
- -mkdir $(FOUNDATION_LIBNL_SOURCE_DIR)
- (cd $(FOUNDATION_LIBNL_SOURCE_DIR); \
- git clone $(FOUNDATION_LIBNL_GIT_REPO) .; \
- git checkout $(FOUNDATION_LIBNL_GIT_VERSION); \
- );
+$(DOWNLOAD_DIR)/$(FOUNDATION_LIBNL_ARCHIVE):
+ $(DOWNLOAD_GIT) $(DOWNLOAD_DIR) $(FOUNDATION_LIBNL_GIT_REPO) $(FOUNDATION_LIBNL_GIT_VERSION) libnl-$(FOUNDATION_LIBNL_VERSION)
+
+$(FOUNDATION_LIBNL_SOURCE_DIR)/.unpacked: $(DOWNLOAD_DIR)/$(FOUNDATION_LIBNL_ARCHIVE)
+ $(CAT) $(DOWNLOAD_DIR)/$(FOUNDATION_LIBNL_ARCHIVE) | tar -C $(SOURCE_DIR) $(TAR_OPTIONS) -
touch $@
$(FOUNDATION_LIBNL_SOURCE_DIR)/.patched: $(FOUNDATION_LIBNL_SOURCE_DIR)/.unpacked
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|