Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
16ee51f4
Commit
16ee51f4
authored
Dec 16, 2000
by
chak
Browse files
[project @ 2000-12-16 06:55:58 by chak]
Simplified setting of build directory following a suggestion by Jeff Lewis.
parent
f05dbea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrib/cvs-build
View file @
16ee51f4
...
...
@@ -119,25 +119,10 @@ cd $BUILD_DIR
tar
-cz
-f
$BUILD_DIR
/SOURCES/ghc-
$VERSION
-src
.tar.gz fptools
||
exit
1
rm
-rf
$BUILD_DIR
/fptools
# set up the configuration for rpm
#
# * !!! this is not really elegant - any better idea?
#
our_rcfile
=
$BUILD_DIR
/rpmrc
our_macrofile
=
$BUILD_DIR
/rpmmacros
cat
>
$our_rcfile
<<
END
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:
$our_macrofile
END
cat
>
$our_macrofile
<<
END
%_topdir
$BUILD_DIR
END
# Build packages with rpm
#
echo
"*** Building packages..."
rcfiles
=
/usr/lib/rpm/rpmrc:
$our_rcfile
rpm
--rcfile
"
$rcfiles
"
-ba
SPEC/ghc-
${
VERSION
}
.spec
||
exit
1
rpm
--define
"_topdir
$BUILD_DIR
"
-ba
SPEC/ghc-
${
VERSION
}
.spec
||
exit
1
echo
"*** ...made the packages"
# Cleaning up
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment