Ubuntu Pastebin

Paste from Harald Sitter at Mon, 17 Aug 2015 14:03:07 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/usr/bin/env ruby

abort 'file exists' if File.exist?('debian/watch')
abort unless system('git up')

name = File.basename(Dir.pwd)
content = <<EOF
version=3
http://download.kde.org/stable/applications/([\\d.]+)/src/#{name}-([\\d.]+).tar.xz
http://download.kde.org/unstable/applications/([\\d.]+)/src/#{name}-([\\d.]+).tar.xz
EOF

File.write('debian/watch', content)
abort unless system('git add debian/watch')
abort unless system('git commit -m "add watch file"')
Download as text