Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2503 - (show annotations) (download) (as text)
Thu Apr 3 22:31:29 2014 UTC (10 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 462 byte(s)
-snapshot script for linux-firmware
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
10 echo DIRNAME ${DIRNAME}
11 echo HEAD ${1:-HEAD}
12
13 rm -rf ${DIRNAME}
14
15 git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/${MODULE}.git ${DIRNAME}
16 GIT_DIR=${DIRNAME}/.git git archive --format=tar --prefix=${DIRNAME}/ ${1:-HEAD} | bzip2 > ${DIRNAME}.tar.bz2
17
18 # rm -rf ${DIRNAME}