Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
52d84821
Commit
52d84821
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-09-03 23:29:55 by sof]
Added clean up signal handlers
parent
a788fb0b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/utils/mkdependHS/mkdependHS.prl
+8
-2
8 additions, 2 deletions
ghc/utils/mkdependHS/mkdependHS.prl
with
8 additions
and
2 deletions
ghc/utils/mkdependHS/mkdependHS.prl
+
8
−
2
View file @
52d84821
...
@@ -156,15 +156,20 @@ print STDERR "Include_dirs=@Include_dirs\n" if $Verbose;
...
@@ -156,15 +156,20 @@ print STDERR "Include_dirs=@Include_dirs\n" if $Verbose;
@Depend_lines = ();
@Depend_lines = ();
# Delete temp. file if script is halted.
sub quit_upon_signal { print STDERR "Deleting $Tmp_prefix.hs .. \n"; unlink "$Tmp_prefix.hs"; }
$SIG{'INT'} = 'quit_upon_signal';
$SIG{'QUIT'} = 'quit_upon_signal';
foreach $sf (@Src_files) {
foreach $sf (@Src_files) {
# just like lit-inputter
# just like lit-inputter
# except it puts each file through CPP and
# except it puts each file through CPP and
# a de-commenter (not implemented);
# a de-commenter (not implemented);
# builds up @Depend_lines
# builds up @Depend_lines
print STDERR "Here we go for source file: $sf\n" if $Verbose;
print STDERR "Here we go for source file: $sf\n" if $Verbose;
($bf = $sf) =~ s/\.l?(hs|y)$//;
($bf = $sf) =~ s/\.l?(hs|y)$//;
#push(@Depend_lines, "$bf.$Obj_suffix $bf.hi : $sf\n");
#push(@Depend_lines, "$bf.$Obj_suffix : $sf\n");
local($str)="";
local($str)="";
foreach $obj (@Obj_suffix) {
foreach $obj (@Obj_suffix) {
$str .= "$bf.$obj ";
$str .= "$bf.$obj ";
...
@@ -188,6 +193,7 @@ foreach $sf (@Src_files) {
...
@@ -188,6 +193,7 @@ foreach $sf (@Src_files) {
}
}
}
}
# OK, mangle the Makefile
# OK, mangle the Makefile
unlink("$Makefile.bak");
unlink("$Makefile.bak");
...
...
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