You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
344 B
18 lines
344 B
#!/bin/bash
|
|
#
|
|
# Generate the e2fsprogs release tar ball
|
|
#
|
|
|
|
commit=HEAD
|
|
|
|
if test -n "$1" ; then
|
|
commit="$1"
|
|
fi
|
|
|
|
ver=`git show ${commit}:version.h | grep E2FSPROGS_VERSION \
|
|
| awk '{print $3}' | tr \" " " | awk '{print $1}'`
|
|
fn=e2fsprogs-${ver}.tar.gz
|
|
|
|
git archive --prefix=e2fsprogs-${ver}/ ${commit} | gzip -9n > $fn
|
|
echo "Generated $fn"
|