Magellan Linux

Contents of /trunk/linux-firmware/make-git-snapshot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2509 - (show annotations) (download) (as text)
Tue Oct 21 12:39:50 2014 UTC (9 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 547 byte(s)
-updated git uri
1 #!/bin/sh
2
3 # Usage: ./make-git-snapshot.sh [COMMIT]
4 #
5 # to make a snapshot of the given tag/branch. Defaults to HEAD.
6
7 MODULE=linux-firmware
8 DIRNAME=${MODULE}-$( date +%Y%m%d )
9 #URI=git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/${MODULE}.git
10 URI=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/${MODULE}.git
11
12 echo DIRNAME ${DIRNAME}
13 echo HEAD ${1:-HEAD}
14
15 rm -rf ${DIRNAME}
16
17 git clone ${URI} ${DIRNAME}
18 GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} | bzip2 > ${DIRNAME}.tar.bz2
19
20 # rm -rf ${DIRNAME}