Created
January 15, 2018 22:41
-
-
Save sowbug/8c4032d03761f4285df54fa0af2e3bf5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import subprocess | |
SOURCES = [ | |
('npth', 'npth-1.5'), | |
('ntbtls', 'ntbtls-0.1.2'), | |
('libgpg-error', 'libgpg-error-1.27'), | |
('libassuan', 'libassuan-2.5.1'), | |
('libgcrypt', 'libgcrypt-1.8.2'), | |
('libksba', 'libksba-1.3.5'), | |
('gnupg', 'gnupg-2.2.4'), | |
] | |
for s in SOURCES: | |
cmd = 'wget https://gnupg.org/ftp/gcrypt/%s/%s.tar.bz2' % (s[0], s[1]) | |
process = subprocess.Popen(cmd) | |
process = subprocess.Popen('tar xf %s.tar.bz2' % s[1]) | |
print "Everything is downloaded and extracted. Now execute these commands.\n" | |
for s in SOURCES: | |
print 'pushd %s; ./configure && make && sudo make install; popd' % s[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment