mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +00:00
ef1f485816
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@325 af15c1b1-3010-417e-b628-4374ebc0bcbd
7 lines
No EOL
220 B
Ruby
Executable file
7 lines
No EOL
220 B
Ruby
Executable file
#!/usr/bin/ruby
|
|
if ARGV.length < 2
|
|
puts "Usage: ruby sign_update.rb update_archive private_key"
|
|
exit
|
|
end
|
|
|
|
puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64` |