-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup-release-environment
executable file
·44 lines (35 loc) · 1.87 KB
/
setup-release-environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Load configuration and utility functions.
source freenet-scripts-common || exit
# Packages on Debian Jessie
# For building Java: openjdk-7-jdk ant
# For release management: rsync, coreutils, diffutils, gnupg, less, wget, perl, python, pip
# For building the Windows installer: xvfb, wine, wine-gecko, mono-runtime
# For avoiding repeated password entry: gnupg-agent openssh-client
# It would be interesting to have the scripts repo without git, but might as well.
sudo apt-get install git openjdk-7-jdk rsync ant coreutils gnupg diffutils less wget xvfb wine perl gnupg-agent openssh-client mono-runtime libwine-gecko-2.24 netcat python python3 junit4 libhamcrest-java || exit
mkdir -p "$releaseDir/dependencies"
wget "https://people.apache.org/~ebourg/jsign/jsign-1.2.jar" -O "$releaseDir/dependencies/jsign-1.2.jar"
# countryDataFile might have a directory that doesn't exist (it is very likely
# to by default) so create it.
# NOTE: Beware of downloading this file multiple times per day. Those who host
# it are apparently very happy to add to their blacklist.
mkdir -p $(dirname "$countryDataFile")
wget software77.net/geo-ip/?DL=4 -O "$countryDataFile"
# Clone if not set up already.
if [ ! -d "$fredDir" ]; then
require "Clone Freenet repository into \"$fredDir\"?"
git clone [email protected]:hyphanet/fred.git "$fredDir" || exit
fi
if [ ! -d "$installerDir" ]; then
require "Clone Freenet installer into \"$installerDir\"?"
git clone https://github.com/freenet/java_installer.git "$installerDir" || exit
fi
if [ ! -d "$wininstallerDir" ]; then
require "Clone Freenet Windows installer into \"$wininstallerDir\"?"
git clone https://github.com/freenet/wininstaller.git "$wininstallerDir" || exit
fi
if [ ! -d "$websiteDir" ]; then
require "Clone Freenet website into \"$websiteDir\"?"
git clone https://github.com/freenet/website.git "$websiteDir"
fi