Last active
January 23, 2020 19:27
-
-
Save nitind/037dac095b1bc46af6fbfac3eb1a1e61 to your computer and use it in GitHub Desktop.
Build script for webtools.sourceediting on Fedora
This file contains 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
#!/bin/bash | |
mkdir -p ~/wtpbuild | |
cd ~/wtpbuild | |
if [ ! -x ~/wtpbuild/Xvnc ] ; then | |
# Build a hardware-independent X server we can use, and watch remotely if interested | |
sudo dnf -y install gcc imake libzstd-devel libjpeg-devel libXmu-devel libXaw-devel Xorg zlib-devel wget maven java-1.8.0-openjdk xorg-x11-server-utils xorg-x11-proto-devel xorg-x11-server-Xorg xorg-x11-fonts-misc | |
wget -c -nv http://www.tightvnc.com/download/1.3.10/tightvnc-1.3.10_unixsrc.tar.gz | |
rm -fr vnc_unixsrc | |
tar xzf tightvnc-1.3.10_unixsrc.tar.gz | |
pushd vnc_unixsrc | |
xmkmf | |
make World | |
cd Xvnc | |
./configure | |
make | |
cp -v programs/Xserver/Xvnc ~/wtpbuild/ | |
popd | |
fi | |
mkdir -p ~/.m2 | |
cat > ~/.m2/toolchains.xml << TOOLCHAINS | |
<?xml version="1.0" encoding="UTF-8"?> | |
<toolchains> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>J2SE-1.3</id> | |
<version>1.3</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>J2SE-1.4</id> | |
<version>1.4</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>J2SE-1.5</id> | |
<version>1.5</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>JavaSE-1.6</id> | |
<version>1.6</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>JavaSE-1.7</id> | |
<version>1.7</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
<toolchain> | |
<type>jdk</type> | |
<provides> | |
<id>JavaSE-1.8</id> | |
<version>1.8</version> | |
</provides> | |
<configuration> | |
<jdkHome>/usr/lib/jvm/java-1.8.0</jdkHome> | |
</configuration> | |
</toolchain> | |
</toolchains> | |
TOOLCHAINS | |
killall Xvnc | |
export DISPLAY=:453 | |
# rm -fr .maven/ | |
if [ ! -d webtools.releng.aggregator ] ; then | |
git clone git://git.eclipse.org/gitroot/webtools/webtools.releng.aggregator.git | |
fi | |
if [ ! -d webtools.sourceediting ] ; then | |
git clone https://git.eclipse.org/r/sourceediting/webtools.sourceediting | |
fi | |
pushd webtools.sourceediting | |
rm -fv build.log | |
git pull --rebase | |
~/wtpbuild/Xvnc :453 -geometry 1920x1200 -depth 24 -ac -fp /usr/share/X11/fonts/misc & | |
mvn clean install -e -fae -Pintegration -V -B -Dmaven.test.skip=false -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dsurefire.timeout=1800 -DskipWithIssues=false -f pom.xml -P bree-libs -Dtycho-extras.version=1.4.0 -Dtycho.version=1.4.0 | tee -a build.log | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment