source: core/c/mbuild.sh @ cb3a8b6

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

remove accidental cruft leftover from testing

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