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