source: core/c/mbuild.sh @ b0ce258

Last change on this file since b0ce258 was b0ce258, checked in by kytv <kytv@…>, 9 years ago

jcpuid build scripts:

  • merge x64 improvements from mbuild.sh into build.sh
  • drop mbuild.sh
  • add logic to determine the location of JAVA_HOME if not defined.
  • update core/c/mbuild to call jcpuid/build.sh
  • Property mode set to 100755
File size: 1010 bytes
Line 
1#!/bin/sh
2##/usr/bin/env bash
3# Automatic build of so files, ignores failed builds.
4# Place latest gmp tarball in the jbigi dir, and exec this script.
5
6if [ -z "$BASH_VERSION" ]; then
7        echo "This script needs to be run with Bash."
8        echo
9        echo "Please install bash and then run this script with"
10        echo "bash $0"
11        exit 1
12fi
13
14#JBIGI=../../../installer/lib/jbigi/jbigi.jar
15
16#if [ -f jbigi.jarx ] ; then
17#JBIGI=../jbigi.jar
18#fi
19
20rm -f t/* jcpuid/lib/freenet/support/CPUInformation/* jbigi/lib/net/i2p/util/*
21
22( cd jcpuid ; ./build.sh )
23( cd jbigi ; ./mbuild-all.sh )
24
25rm -Rf t
26mkdir t
27
28(
29        cd t
30        cp ../../../installer/lib/jbigi/*.so ../../../installer/lib/jbigi/*.dll ../../../installer/lib/jbigi/*.jnilib .
31)
32
33cp jbigi/lib/net/i2p/util/* t/
34( 
35        cd t
36        for i in *.so ; { strip $i ; }
37)
38
39cp jcpuid/lib/freenet/support/CPUInformation/* t/
40
41(
42        cd t
43        jar cf ../jbigi.jar .
44)
45
46rm -R t
47mkdir t
48cp jbigi/lib/net/i2p/util/* t/
49( 
50        cd t
51        for i in *.so ; { strip $i ; }
52)
53
54
55echo "jbigi.jar created."
56echo "raw files are in t."
Note: See TracBrowser for help on using the repository browser.