Commits

Stefan Saasen committed 7a7168c

Add the version to the archive name

Comments (0)

Files changed (1)

logparser/Rakefile

 
 desc "Build and package the logparser"
 task :package => :build do
-  `tar zfc logparser-#{RUBY_PLATFORM}.tar.gz LICENSE NOTICE -C.. README.md -Clogparser/dist/build/logparser logparser`
+  `tar zfc logparser-#{RUBY_PLATFORM}-#{version}.tar.gz LICENSE NOTICE -C.. README.md -Clogparser/dist/build/logparser logparser`
 end
 
 desc "Rebuild and copy the logparser into the cabal bin directory"
   end
 end
 
+def version
+  `git describe --tag --always`.strip
+end
 
 def cabal(cmd)
   print `cabal #{cmd}`