Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
ae50387d
Commit
ae50387d
authored
11 months ago
by
James K. Lowden
Browse files
Options
Downloads
Patches
Plain Diff
use local newcob.val if NIST returns HTML page instead of the file
parent
cbf31323
No related branches found
No related tags found
No related merge requests found
Pipeline
#1663
passed
11 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/cobol/nist/Makefile
+10
-2
10 additions, 2 deletions
gcc/cobol/nist/Makefile
with
10 additions
and
2 deletions
gcc/cobol/nist/Makefile
+
10
−
2
View file @
ae50387d
...
...
@@ -459,16 +459,24 @@ $(ORIG): $(ARCHIVE)
# Keep a copy of the .Z because uncompress(1) removes it. Set the
# date of the .Z to match that of newcob.val, so it's not downloaded
# again.
#
# If the file cannot be uncompressed, use a local version, if extant.
newcob.val
:
newcob.val.Z
cp
$^
.
$^
uncompress
$^
uncompress
$^
||
{
\
file
$^
;
\
echo
using
local
copy of
$^
;
\
cp
-v
$(
HOME
)
/
$^
$^
;
\
cp
$^
.
$^
;
\
uncompress
$^
;
\
}
cp
.
$^
$^
touch
-r
$@
$^
URL
=
http://www.itl.nist.gov/div897/ctg/suites/newcob.val.Z
newcob.val.Z
:
# The file from NIST doesn't exist, so we need to download it.
wget
-O
$@~
$(URL)
||
cp
$(HOME)/$@
$@~
wget
-O
$@~
$(URL)
||
cp
-v
$(HOME)/$@
$@~
@mv
$@~
$@
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment