Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch to make hugs build with Apple's gcc-3.3.
Bug: Submitted by: Reviewed by: Approved by: Obtained from: git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3912 d073be05-634f-4543-b044-5fe20cf6d1d6
- Loading branch information
Gregory Wright
committed
Nov 7, 2003
1 parent
ce807b8
commit f28e058
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- src/unix/convert_libraries.sav Fri Nov 7 11:01:47 2003 | ||
+++ src/unix/convert_libraries Fri Nov 7 11:11:23 2003 | ||
@@ -59,7 +59,7 @@ | ||
|
||
case "$2" in | ||
*.lhs|*.hs) | ||
- $cpp $includes $src/$1/$2 | cat -s >$dst/$2 | ||
+ $cpp $includes $src/$1/$2 | sed -n '/^#pragma/!p' | cat -s >$dst/$2 | ||
;; | ||
*.hsc) | ||
# with a hack to extract the -#include directives | ||
@@ -95,7 +95,7 @@ | ||
hs_file="`dirname $src/$1/$2`/$outname" | ||
if [ -f "$hs_file" ] | ||
then | ||
- $cpp "$hs_file" | cat -s >$target | ||
+ $cpp "$hs_file" | sed -n '/^#pragma/!p' | cat -s >$target | ||
else | ||
tmpdir=/tmp/cvt.$$ | ||
mkdir $tmpdir | ||
@@ -104,7 +104,7 @@ | ||
cd $tmpdir | ||
happy $inname | ||
) | ||
- $cpp $tmpdir/$outname | cat -s >$target | ||
+ $cpp $tmpdir/$outname | sed -n '/^#pragma/!p' | cat -s >$target | ||
rm -r $tmpdir | ||
fi | ||
;; | ||
@@ -216,7 +216,7 @@ | ||
esac | ||
|
||
echo "Converting $2" | ||
- $cpp $hs_src/$1/$2 >$compat/$2 | ||
+ $cpp $hs_src/$1/$2 | sed -n '/^#pragma/!p' >$compat/$2 | ||
} | ||
|
||
# Modules to convert |