Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2509 - (hide 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 niro 2503 #!/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 niro 2509 #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 niro 2503
12     echo DIRNAME ${DIRNAME}
13     echo HEAD ${1:-HEAD}
14    
15     rm -rf ${DIRNAME}
16    
17 niro 2509 git clone ${URI} ${DIRNAME}
18 niro 2503 GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} | bzip2 > ${DIRNAME}.tar.bz2
19    
20     # rm -rf ${DIRNAME}