/[dtapublic]/projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/build
ViewVC logotype

Annotation of /projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 175 - (hide annotations) (download)
Mon Jul 9 00:00:34 2018 UTC (6 years, 3 months ago) by dashley
File size: 5180 byte(s)
Update license (GPL->MIT) and copyright information.  Remove CVS log, which SVN does not support.
1 dashley 172 #!/bin/bash
2     #$Header$
3     #********************************************************************************
4 dashley 175 #Copyright (c) 2003, 2018 David T. Ashley.
5 dashley 172 #********************************************************************************
6 dashley 175 #This file is part of "arith_large_cgi", a program that is designed to be
7     #invoked by a PHP script as part of serving a web page that performs
8     #calculations involving large integers. (A secondary compiled program is
9     #used because a compiled program can perform certain calculation-intensive
10     #tasks far more efficiently than a PHP script.) This program is provided by
11     #David T. Ashley (dashley@gmail.com) under the MIT License (reproduced
12     #immediately below).
13     #********************************************************************************
14     #Permission is hereby granted, free of charge, to any person obtaining a copy
15     #of this software and associated documentation files (the "Software"), to deal
16     #in the Software without restriction, including without limitation the rights
17     #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18     #copies of the Software, and to permit persons to whom the Software is
19     #furnished to do so, subject to the following conditions:
20 dashley 172 #
21 dashley 175 #The above copyright notice and this permission notice shall be included in all
22     #copies or substantial portions of the Software.
23 dashley 172 #
24 dashley 175 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25     #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26     #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27     #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28     #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29     #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30     #SOFTWARE.
31 dashley 172 #********************************************************************************
32     #This BASH script just builds the executable. If there is any trouble in porting the
33     #executable, it might be wise to use the -static option on the compile.
34     #
35     #Build the general purpose CGI-BIN which gives data to the script.
36 dashley 173 gcc -Wimplicit -static -o arith_large_cgi arith_large_cgi.c auxfuncs.c cf_decomp.c rat_num.c sieve_eratosthenes.c subfunc_cfbrap.c subfunc_gcd.c subfunc_gmp_prob_prime.c subfunc_pfact_18.c -lgmp
37 dashley 172 #
38     #Copy all the source files to the right locations so they will be publicly available
39     #to meet the license terms of the GMP.
40 dashley 173 #cp arith_large_cgi.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/arith_large_cgi.c.txt
41     #cp auxfuncs.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/auxfuncs.c.txt
42     #cp auxfuncs.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/auxfuncs.h.txt
43     #cp build /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/build.txt
44     #cp sieve_eratosthenes.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_eratosthenes.c.txt
45     #cp sieve_eratosthenes.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_eratosthenes.h.txt
46     #cp sieve_gen.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_gen.c.txt
47     #cp subfunc_gcd.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gcd.c.txt
48     #cp subfunc_gcd.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gcd.h.txt
49     #cp subfunc_gmp_prob_prime.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gmp_prob_prime.c.txt
50     #cp subfunc_gmp_prob_prime.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gmp_prob_prime.h.txt
51     #cp subfunc_pfact_18.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_pfact_18.c.txt
52     #cp subfunc_pfact_18.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_pfact_18.h.txt
53 dashley 172 #
54     #Also copy the PHP scripts.
55 dashley 173 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/Cpuusagestatclock.inc /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/Cpuusagestatclock.inc.txt
56     #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/pfact18digit.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/pfact18digit.php.txt
57     #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/euclid_gcd.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/euclid_gcd.php.txt
58     #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/miller_rabin.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/miller_rabin.php.txt
59     #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/Stdnwpstyle.inc /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/Stdnwpstyle.inc.txt
60 dashley 172 #
61     #********************************************************************************
62     #End of file BUILD.
63     #********************************************************************************

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Header

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25