1#!/bin/bash 2# 3# Generate the e2fsprogs release tar ball 4# 5 6commit=HEAD 7 8if test -n "$1" ; then 9 commit="$1" 10fi 11 12ver=`git show ${commit}:version.h | grep E2FSPROGS_VERSION \ 13 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 14fn=e2fsprogs-${ver}.tar.gz 15 16git archive --prefix=e2fsprogs-${ver}/ ${commit} | gzip -9n > $fn 17echo "Generated $fn" 18