mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Compare commits
26 Commits
v2.15.0.5
...
prod-2.15.
Author | SHA1 | Date | |
---|---|---|---|
|
4017579aeb | ||
|
88fb6a4e47 | ||
|
7eb7e9de1f | ||
|
42d5749da2 | ||
|
bbcbb76369 | ||
|
232b3bddef | ||
|
5ac3e495b2 | ||
|
56153d6615 | ||
|
2a4f399593 | ||
|
160de4bb38 | ||
|
db77e29a23 | ||
|
fe9cefe6ef | ||
|
ea4c50ade0 | ||
|
7f72908b95 | ||
|
a547c36f0a | ||
|
1e2698b42d | ||
|
33815f49e6 | ||
|
732279bcc3 | ||
|
7f4e1eb68d | ||
|
1232b59949 | ||
|
90feefc622 | ||
|
c97ee188ad | ||
|
ae85846839 | ||
|
e096bd9ad8 | ||
|
884b1bc81b | ||
|
a30a518ba7 |
43
.github/workflows/codeql-analysis.yml
vendored
43
.github/workflows/codeql-analysis.yml
vendored
@@ -13,10 +13,10 @@ name: "CodeQL"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ "master" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
# The branches below must be a subset of the branches above
|
# The branches below must be a subset of the branches above
|
||||||
branches: [ master ]
|
branches: [ "master" ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '41 1 * * 6'
|
- cron: '41 1 * * 6'
|
||||||
|
|
||||||
@@ -33,39 +33,48 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: [ 'cpp' ]
|
language: [ 'cpp' ]
|
||||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||||
# Learn more:
|
# Use only 'java' to analyze code written in Java, Kotlin or both
|
||||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
||||||
|
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
||||||
|
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||||||
|
# queries: security-extended,security-and-quality
|
||||||
|
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v3
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||||
|
|
||||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
||||||
# and modify them (or add more) to build your code if your project
|
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
||||||
# uses a compiled language
|
|
||||||
|
|
||||||
# - run: |
|
# - run: |
|
||||||
# make bootstrap
|
# echo "Run, Build Application using script"
|
||||||
# make release
|
# ./location_of_script_within_repo/buildscript.sh
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v3
|
||||||
|
with:
|
||||||
|
category: "/language:${{matrix.language}}"
|
||||||
|
12
.gitignore
vendored
12
.gitignore
vendored
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
*~
|
*~
|
||||||
*.BAK
|
*.BAK
|
||||||
.DS_Store
|
|
||||||
core*
|
core*
|
||||||
|
.DS_Store
|
||||||
*.dSYM/
|
*.dSYM/
|
||||||
*.exe
|
*.exe
|
||||||
*.[oa]
|
*.[oa]
|
||||||
@@ -21,8 +21,6 @@ core*
|
|||||||
#
|
#
|
||||||
# We sort the list below via: sort -d -u
|
# We sort the list below via: sort -d -u
|
||||||
#
|
#
|
||||||
Makefile.our
|
|
||||||
NOTES
|
|
||||||
align32
|
align32
|
||||||
align32.h
|
align32.h
|
||||||
align32_tmp
|
align32_tmp
|
||||||
@@ -42,13 +40,13 @@ chk_c
|
|||||||
conf.h
|
conf.h
|
||||||
const_tmp
|
const_tmp
|
||||||
cscript/4dsphere
|
cscript/4dsphere
|
||||||
cscript/README
|
|
||||||
cscript/.all
|
cscript/.all
|
||||||
cscript/fproduct
|
cscript/fproduct
|
||||||
cscript/mersenne
|
cscript/mersenne
|
||||||
cscript/piforever
|
cscript/piforever
|
||||||
cscript/plus
|
cscript/plus
|
||||||
cscript/powerterm
|
cscript/powerterm
|
||||||
|
cscript/README
|
||||||
cscript/simple
|
cscript/simple
|
||||||
cscript/square
|
cscript/square
|
||||||
custom/.all
|
custom/.all
|
||||||
@@ -128,8 +126,6 @@ have_urandom.h
|
|||||||
have_ustat
|
have_ustat
|
||||||
have_ustat.h
|
have_ustat.h
|
||||||
have_varvs
|
have_varvs
|
||||||
help/COPYING
|
|
||||||
help/COPYING-LGPL
|
|
||||||
help/.all
|
help/.all
|
||||||
help/binding
|
help/binding
|
||||||
help/bindings
|
help/bindings
|
||||||
@@ -140,6 +136,8 @@ help/change
|
|||||||
help/changes
|
help/changes
|
||||||
help/contrib
|
help/contrib
|
||||||
help/copy
|
help/copy
|
||||||
|
help/COPYING
|
||||||
|
help/COPYING-LGPL
|
||||||
help/cscript
|
help/cscript
|
||||||
help/custom_cal
|
help/custom_cal
|
||||||
help/errorcode
|
help/errorcode
|
||||||
@@ -163,8 +161,10 @@ libcustcalc.*
|
|||||||
ll_tmp
|
ll_tmp
|
||||||
longbits
|
longbits
|
||||||
longbits.h
|
longbits.h
|
||||||
|
Makefile.our
|
||||||
memmv_tmp
|
memmv_tmp
|
||||||
newstr_tmp
|
newstr_tmp
|
||||||
|
NOTES
|
||||||
offscl_tmp
|
offscl_tmp
|
||||||
outfile
|
outfile
|
||||||
posscl_tmp
|
posscl_tmp
|
||||||
|
34
CHANGES
34
CHANGES
@@ -1,3 +1,37 @@
|
|||||||
|
The following are the changes from calc version 2.15.1.1 to 2.15.1.1:
|
||||||
|
|
||||||
|
Change Makefile.config to, if not using not HomeBrew, then try to
|
||||||
|
detect macports and/or using /opt/local/{lib,include}.
|
||||||
|
|
||||||
|
Put full date range (1989-2025) of calc source into version.h.
|
||||||
|
|
||||||
|
|
||||||
|
The following are the changes from calc version 2.15.0.7 to 2.15.1.0:
|
||||||
|
|
||||||
|
Converted all ASCII tabs to ASCII spaces using a 8 character
|
||||||
|
tab stop, for all files, except for all Makefiles (plus rpm.mk).
|
||||||
|
The command `git diff -w` reports no changes. There is no
|
||||||
|
functionality change in calc: only ASCII tabs to ASCII spaces.
|
||||||
|
|
||||||
|
Fixed trailblank. It was pruning . in its find search.
|
||||||
|
Added check for ASCII tabs is non-Makefiles.
|
||||||
|
|
||||||
|
This version will form the basis for the calc v2 to calc v3 fork.
|
||||||
|
|
||||||
|
|
||||||
|
The following are the changes from calc version 2.15.0.6 to 2.15.0.7:
|
||||||
|
|
||||||
|
Thanks to GitHub user @bambooleafz a critical bug (GitHub issue
|
||||||
|
#148 - https://github.com/lcn2/calc/issues/148) they identified
|
||||||
|
was fixed.
|
||||||
|
|
||||||
|
|
||||||
|
The following are the changes from calc version 2.15.0.5 to 2.15.0.6:
|
||||||
|
|
||||||
|
Thanks to GitHub user @ashamedbit, a long standing memory leak in
|
||||||
|
zrandom.c has been fixed.
|
||||||
|
|
||||||
|
|
||||||
The following are the changes from calc version 2.15.0.4 to 2.15.0.5:
|
The following are the changes from calc version 2.15.0.4 to 2.15.0.5:
|
||||||
|
|
||||||
make clobber now removes the legacy files: have_fpos.h, help/man,
|
make clobber now removes the legacy files: have_fpos.h, help/man,
|
||||||
|
@@ -1112,6 +1112,9 @@ READLINE_EXTRAS= -lhistory -lncurses
|
|||||||
#READLINE_LIB= -L${PREFIX}/lib -lreadline
|
#READLINE_LIB= -L${PREFIX}/lib -lreadline
|
||||||
#READLINE_EXTRAS= -lhistory -lncurses
|
#READLINE_EXTRAS= -lhistory -lncurses
|
||||||
#
|
#
|
||||||
|
#READLINE_LIB= -L/opt/local/lib -lreadline
|
||||||
|
#READLINE_EXTRAS= -lhistory -lncurses
|
||||||
|
#
|
||||||
# For Apple OS X: install fink from http://fink.sourceforge.net
|
# For Apple OS X: install fink from http://fink.sourceforge.net
|
||||||
# and then do a 'fink install readline' and then use:
|
# and then do a 'fink install readline' and then use:
|
||||||
#
|
#
|
||||||
@@ -1130,6 +1133,7 @@ READLINE_EXTRAS= -lhistory -lncurses
|
|||||||
READLINE_INCLUDE=
|
READLINE_INCLUDE=
|
||||||
#READLINE_INCLUDE= -I/usr/gnu/include
|
#READLINE_INCLUDE= -I/usr/gnu/include
|
||||||
#READLINE_INCLUDE= -I${PREFIX}/include
|
#READLINE_INCLUDE= -I${PREFIX}/include
|
||||||
|
#READLINE_INCLUDE= -I/opt/local/include
|
||||||
|
|
||||||
# Handle the case where macOS is being used with HomeBrew
|
# Handle the case where macOS is being used with HomeBrew
|
||||||
# # and using the readline, history, and ncurses libraries.
|
# # and using the readline, history, and ncurses libraries.
|
||||||
@@ -1137,6 +1141,16 @@ READLINE_INCLUDE=
|
|||||||
ifneq ($(HOMEBREW_PREFIX),)
|
ifneq ($(HOMEBREW_PREFIX),)
|
||||||
READLINE_LIB:= -L${HOMEBREW_PREFIX}/opt/readline/lib -lreadline
|
READLINE_LIB:= -L${HOMEBREW_PREFIX}/opt/readline/lib -lreadline
|
||||||
READLINE_INCLUDE:= -I${HOMEBREW_PREFIX}/opt/readline/include
|
READLINE_INCLUDE:= -I${HOMEBREW_PREFIX}/opt/readline/include
|
||||||
|
|
||||||
|
# If not HomeBrew, then try to detect macports and/or using /opt/local/{lib,include}
|
||||||
|
#
|
||||||
|
else # perhaps macports and/or using /opt/local/{lib,include} ?
|
||||||
|
ifneq ($(wildcard /opt/local/lib/*),)
|
||||||
|
READLINE_LIB:= -L/opt/local/lib -lreadline
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard /opt/local/incliude/*),)
|
||||||
|
READLINE_INCLUDE:= -I/opt/local/include
|
||||||
|
endif
|
||||||
endif # ($(HOMEBREW_PREFIX),)
|
endif # ($(HOMEBREW_PREFIX),)
|
||||||
|
|
||||||
# If $PAGER is not set, use this program to display a help file
|
# If $PAGER is not set, use this program to display a help file
|
||||||
@@ -1243,11 +1257,11 @@ EXT=
|
|||||||
|
|
||||||
# The calc version in the form of x.y.z.w
|
# The calc version in the form of x.y.z.w
|
||||||
#
|
#
|
||||||
VERSION= 2.15.0.5
|
VERSION= 2.15.1.1
|
||||||
|
|
||||||
# The calc major version in the form of x.y.z
|
# The calc major version in the form of x.y.z
|
||||||
#
|
#
|
||||||
VER= 2.15.0
|
VER= 2.15.1
|
||||||
|
|
||||||
# Names of shared libraries with versions
|
# Names of shared libraries with versions
|
||||||
#
|
#
|
||||||
|
@@ -283,3 +283,8 @@ help unexpected
|
|||||||
|
|
||||||
It contains information about differences between C and calc
|
It contains information about differences between C and calc
|
||||||
that may surprise C programmers.
|
that may surprise C programmers.
|
||||||
|
|
||||||
|
|
||||||
|
# Reporting Security Issues
|
||||||
|
|
||||||
|
To report a security issue, please visit "[Reporting Security Issues](https://github.com/lcn2/calc/security/policy)".
|
||||||
|
22
SECURITY.md
22
SECURITY.md
@@ -1,4 +1,16 @@
|
|||||||
# Security Policy
|
# Reporting Security Issues
|
||||||
|
|
||||||
|
We take security bugs seriously. We appreciate your efforts to responsibly
|
||||||
|
disclose your findings, and will make every effort to acknowledge your
|
||||||
|
contributions for any verified security issues when they have been fixed.
|
||||||
|
|
||||||
|
To report a security issue, click on: "[Open a draft security advisory](https://github.com/lcn2/calc/security/advisories/new)"
|
||||||
|
|
||||||
|
We will send a response indicating the next steps in handling your
|
||||||
|
report. After the initial reply to your report, we will keep you informed
|
||||||
|
of the progress towards a fix and full announcement, and may ask for
|
||||||
|
additional information or guidance.
|
||||||
|
|
||||||
|
|
||||||
## Supported Versions
|
## Supported Versions
|
||||||
|
|
||||||
@@ -9,11 +21,3 @@ If the most recent stable of calc is also supported with security updates.
|
|||||||
FYI: please review the BUGS file, or enter the calc command:
|
FYI: please review the BUGS file, or enter the calc command:
|
||||||
|
|
||||||
; help BUGS
|
; help BUGS
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
|
||||||
|
|
||||||
Please create a calc GitHub repo issue:
|
|
||||||
|
|
||||||
https://github.com/lcn2/calc/issues
|
|
||||||
|
|
||||||
Click on ((New issue)) and follow the issue template.
|
|
||||||
|
@@ -3030,6 +3030,24 @@ define test_2600()
|
|||||||
strcat(str(tnum++),
|
strcat(str(tnum++),
|
||||||
': round(log(1.2+1.2i,1e-10),10) == ',
|
': round(log(1.2+1.2i,1e-10),10) == ',
|
||||||
'0.2296962439+0.3410940885i'));
|
'0.2296962439+0.3410940885i'));
|
||||||
|
vrfy(log2(0.5) == -1,
|
||||||
|
strcat(str(tnum++), ': log2(0.5) == -1'));
|
||||||
|
vrfy(log2(0.5) == -1,
|
||||||
|
strcat(str(tnum++), ': log2(0.5) == -1'));
|
||||||
|
vrfy(log2(0.5) == log2(0.5),
|
||||||
|
strcat(str(tnum++), ': log2(0.5) == log2(0.5)'));
|
||||||
|
vrfy(0^0 == 1,
|
||||||
|
strcat(str(tnum++), ': 0^0 == 1'));
|
||||||
|
vrfy(1^0 == 1,
|
||||||
|
strcat(str(tnum++), ': 1^0 == 1'));
|
||||||
|
vrfy(1^1 == 1,
|
||||||
|
strcat(str(tnum++), ': 1^1 == 1'));
|
||||||
|
vrfy(2^0 == 1,
|
||||||
|
strcat(str(tnum++), ': 2^0 == 1'));
|
||||||
|
vrfy(log2(1) == 0,
|
||||||
|
strcat(str(tnum++), ': log2(1) == 0'));
|
||||||
|
vrfy(log2(1.0) == 0,
|
||||||
|
strcat(str(tnum++), ': log2(1.0) == 0'));
|
||||||
vrfy(log2(2) == 1,
|
vrfy(log2(2) == 1,
|
||||||
strcat(str(tnum++), ': log2(2) == 1'));
|
strcat(str(tnum++), ': log2(2) == 1'));
|
||||||
vrfy(log2(4) == 2,
|
vrfy(log2(4) == 2,
|
||||||
|
2
calc.man
2
calc.man
@@ -1512,7 +1512,7 @@ the following GitHub repo:
|
|||||||
https://github.com/lcn2/calc
|
https://github.com/lcn2/calc
|
||||||
.in -0.5i
|
.in -0.5i
|
||||||
.sp
|
.sp
|
||||||
The very latest calc souece is found at the top master branch.
|
The very latest calc source is found at the top master branch.
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ following topics:
|
|||||||
config configuration parameters
|
config configuration parameters
|
||||||
custom information about the custom builtin interface
|
custom information about the custom builtin interface
|
||||||
define how to define functions
|
define how to define functions
|
||||||
environment how environment variables effect calc
|
environment how environment variables affect calc
|
||||||
errorcodes calc generated error codes
|
errorcodes calc generated error codes
|
||||||
expression expression sequences
|
expression expression sequences
|
||||||
file using files
|
file using files
|
||||||
|
2
qfunc.c
2
qfunc.c
@@ -1953,7 +1953,7 @@ qispowerof2(NUMBER *q, NUMBER **qlog2)
|
|||||||
* Set *qlog2 to base 2 logarithm of q, which will be a negative value,
|
* Set *qlog2 to base 2 logarithm of q, which will be a negative value,
|
||||||
* and return true.
|
* and return true.
|
||||||
*/
|
*/
|
||||||
*qlog2 = utoq(log2);
|
**qlog2 = *utoq(log2);
|
||||||
(*qlog2)->num.sign = !(*qlog2)->num.sign; /* set *qlog2 to -log2 */
|
(*qlog2)->num.sign = !(*qlog2)->num.sign; /* set *qlog2 to -log2 */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
33
trailblank
33
trailblank
@@ -182,8 +182,8 @@ PICKY_PHASE_1=$(
|
|||||||
-name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \
|
-name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \
|
||||||
-name 'sample_many-static' -o -name 'sample_rand-static' -o \
|
-name 'sample_many-static' -o -name 'sample_rand-static' -o \
|
||||||
-name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \
|
-name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \
|
||||||
-name '?' -o -iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \
|
-iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \
|
||||||
-iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' \
|
-name '.lldbinit' -o -iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' \
|
||||||
\) -prune -o -type f -print0 | \
|
\) -prune -o -type f -print0 | \
|
||||||
if [[ -x /usr/local/bin/picky ]]; then
|
if [[ -x /usr/local/bin/picky ]]; then
|
||||||
xargs -0 /usr/local/bin/picky -s -v -w132
|
xargs -0 /usr/local/bin/picky -s -v -w132
|
||||||
@@ -218,6 +218,35 @@ if [[ -n $BACKUP_MAKEILES ]]; then
|
|||||||
EXIT_CODE=7
|
EXIT_CODE=7
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# look for ASCII tabs in non-Makefiles
|
||||||
|
#
|
||||||
|
TABS_FOUND=$(
|
||||||
|
find . \( -path './NOTES' -o -path './calc' -o -path './ver_calc' -o \
|
||||||
|
-name '*.o' -o -name '*.a' -o -name '*ptch*' -o -name 'core*' -o \
|
||||||
|
-name '*.orig' -o -name '*.rej' -o -name '*.bak' -o \
|
||||||
|
-name '*.ptch' -o -name 'core.*' -o \
|
||||||
|
-name '*.so*' -o -name 'calc-static' -o -name 'libcalc.*' -o \
|
||||||
|
-name 'sample_many' -o -name 'sample_rand' -o -name 'errcode' -o \
|
||||||
|
-path './help/funclist' -o -path './have_stdvs' -o \
|
||||||
|
-path './endian' -o -path './no_implicit' -o -name 'chk_c' -o \
|
||||||
|
-path './longbits' -o -name '.*.swp' -o -name 'conf.h' -o \
|
||||||
|
-name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \
|
||||||
|
-name 'sample_many-static' -o -name 'sample_rand-static' -o \
|
||||||
|
-name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \
|
||||||
|
-iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \
|
||||||
|
-name '.lldbinit' -o -iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' -o \
|
||||||
|
-iname 'Makefile*' -o -name rpm.mk -o -name 'trailblank' \
|
||||||
|
\) -prune -o -type f -print0 | \
|
||||||
|
xargs -0 grep -l -E ' '
|
||||||
|
)
|
||||||
|
if [[ -n $TABS_FOUND ]]; then
|
||||||
|
echo
|
||||||
|
echo '# ASCII TABs found in non-Makefiles:'
|
||||||
|
echo "$TABS_FOUND"
|
||||||
|
EXIT_CODE=8
|
||||||
|
fi
|
||||||
|
|
||||||
# All Done!!! -- Jessica Noll, Age 2
|
# All Done!!! -- Jessica Noll, Age 2
|
||||||
#
|
#
|
||||||
exit "$EXIT_CODE"
|
exit "$EXIT_CODE"
|
||||||
|
30
update_ver
30
update_ver
@@ -169,6 +169,7 @@ for i in $MK_SET1; do
|
|||||||
echo "$i: $VER_STRING"
|
echo "$i: $VER_STRING"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo
|
||||||
if [[ -n $VER_ERR ]]; then
|
if [[ -n $VER_ERR ]]; then
|
||||||
echo "$0: FATAL: error in finding calc major version string"
|
echo "$0: FATAL: error in finding calc major version string"
|
||||||
echo "$0: FATAL: exit 10"
|
echo "$0: FATAL: exit 10"
|
||||||
@@ -177,15 +178,36 @@ fi
|
|||||||
|
|
||||||
# print other useful calc strings
|
# print other useful calc strings
|
||||||
#
|
#
|
||||||
|
export VER_CALC_OUTPUT=$(./ver_calc)
|
||||||
|
echo 'Begin text strings used to produce this release:'
|
||||||
|
echo 'vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv'
|
||||||
echo
|
echo
|
||||||
echo "calc $(./ver_calc) release"
|
|
||||||
echo
|
echo
|
||||||
echo 'calc-*'$(./ver_calc)'*'
|
|
||||||
echo
|
echo
|
||||||
echo "Release v$(./ver_calc)"
|
echo "$VER_CALC_OUTPUT"
|
||||||
|
echo
|
||||||
|
echo "v$VER_CALC_OUTPUT"
|
||||||
|
echo
|
||||||
|
echo "Release v$VER_CALC_OUTPUT"
|
||||||
|
echo
|
||||||
|
echo "calc $VER_CALC_OUTPUT release"
|
||||||
|
echo
|
||||||
|
echo 'For use with sourceforge.net:'
|
||||||
|
echo
|
||||||
|
echo 'cd /home/pfs/project/calc/calc'
|
||||||
|
echo "mkdir $VER_CALC_OUTPUT"
|
||||||
|
echo "cd $VER_CALC_OUTPUT"
|
||||||
|
echo 'mput calc-*'"$VER_CALC_OUTPUT"'*'
|
||||||
|
echo 'put /home/chongo/tmp/README.txt'
|
||||||
|
echo 'ls'
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
|
||||||
|
echo 'End text strings used to produce this release:'
|
||||||
|
echo
|
||||||
|
|
||||||
# All Done!!! -- Jessica Noll, Age 2
|
# All Done!!! -- Jessica Noll, Age 2
|
||||||
#
|
#
|
||||||
echo
|
|
||||||
echo "VERSION in Makefile.config is up to date"
|
echo "VERSION in Makefile.config is up to date"
|
||||||
exit 0
|
exit 0
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* version - determine the version of calc
|
* version - determine the version of calc
|
||||||
*
|
*
|
||||||
* Copyright (C) 2023 David I. Bell and Landon Curt Noll
|
* Copyright (C) 1989-2025 David I. Bell and Landon Curt Noll
|
||||||
*
|
*
|
||||||
* Calc is open software; you can redistribute it and/or modify it under
|
* Calc is open software; you can redistribute it and/or modify it under
|
||||||
* the terms of the version 2.1 of the GNU Lesser General Public License
|
* the terms of the version 2.1 of the GNU Lesser General Public License
|
||||||
@@ -63,8 +63,8 @@
|
|||||||
*/
|
*/
|
||||||
#define MAJOR_VER 2 /* level 1: major library version */
|
#define MAJOR_VER 2 /* level 1: major library version */
|
||||||
#define MINOR_VER 15 /* level 2: minor library version */
|
#define MINOR_VER 15 /* level 2: minor library version */
|
||||||
#define MAJOR_PATCH 0 /* level 3: major software version level */
|
#define MAJOR_PATCH 1 /* level 3: major software version level */
|
||||||
#define MINOR_PATCH 5 /* level 4: minor software version level */
|
#define MINOR_PATCH 1 /* level 4: minor software version level */
|
||||||
|
|
||||||
|
|
||||||
#endif /* !INCLUDE_VERSION_H*/
|
#endif /* !INCLUDE_VERSION_H*/
|
||||||
|
Reference in New Issue
Block a user