Skip to content
This repository has been archived by the owner. It is now read-only.

insert hash in package version #1

Merged
merged 1 commit into from Aug 13, 2012
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

insert hash in package version

  • Loading branch information
Mike Blume
Mike Blume committed Aug 13, 2012
commit 9ca0f6bfc9eda8f7009646664fd8e5abc2120c4a
@@ -13,6 +13,7 @@ name="$(sh $basedir/name.sh)"
branch=$(sh $basedir/current-branch.sh)
upstream=$(sh $basedir/upstream.sh)
revision="$(sh $basedir/last-commit-timestamp.sh $upstream)"
hash="$(git show --oneline | head -n 1 | cut -d ' ' -f 1)"

dir=build
sh $basedir/pristine-checkout.sh $branch $dir
@@ -27,6 +28,6 @@ prefix="/opt/loggly/$name"
[ -f $dir/build.xml ] && (cd $dir; ant artifact)

pkgname=loggly-$name
pkgversion=$revision.$branch
pkgversion=$revision.$hash.$branch
echo "Building deb package for $pkgname=$pkgversion"
fpm -s dir -t deb --prefix $prefix -n $pkgname -v $pkgversion -C $dir "$@"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.