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
45432319
Commit
45432319
authored
24 years ago
by
chak@cse.unsw.edu.au.
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-05-02 07:50:41 by chak]
Removed a last flaw and use `cvs export' instead of `cvs checkout' now.
parent
1e2dc510
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
distrib/cvs-build
+22
-12
22 additions, 12 deletions
distrib/cvs-build
with
22 additions
and
12 deletions
distrib/cvs-build
+
22
−
12
View file @
45432319
...
...
@@ -29,6 +29,13 @@
# Requires: autoconf, cvs, GNU tar, gnuopt
# TODO
# ----
#
# * cover other fptools
# * it would be convenient to be able to specify an alternative .spec file
# (instead of using that in the repository)
# Default values
# --------------
...
...
@@ -36,14 +43,20 @@
#
CVS_REPOSITORY
=
:pserver:anoncvs@glass.cse.ogi.edu:/cvs
# We build the CVS head by default (indicated by an empty tag)
# We build the CVS head by default (a date of `tomorrow' guarantees to catch
# the most recent check ins in the presence of clock skews - `now' wouldn't do
# that)
#
CVS_TAG
=
CVS_TAG
=
"-D tomorrow"
# This is where we let rpm do the actual build
#
BUILD_DIR
=
/tmp/cvs-build-
$$
# Works only for i386 for the moment...
# !!!IMPROVE THIS
ARCH
=
i386
START_DIR
=
`
pwd
`
# Command line option processing
...
...
@@ -72,13 +85,13 @@ fi
# Check the sources out of CVS
#
echo
"***
Check
ing sources
out of
CVS... (will build in
$BUILD_DIR
)"
echo
"***
Export
ing sources
from
CVS... (will build in
$BUILD_DIR
)"
mkdir
-p
$BUILD_DIR
||
exit
1
cd
$BUILD_DIR
cvs
-d
$CVS_REPOSITORY
checkou
t
$CVS_TAG
fpconfig
||
exit
1
cvs
-d
$CVS_REPOSITORY
expor
t
$CVS_TAG
fpconfig
||
exit
1
cd
fptools
cvs
checkou
t
$CVS_TAG
ghc
||
exit
1
cvs
checkou
t
$CVS_TAG
hslibs
||
exit
1
cvs
-d
$CVS_REPOSITORY
expor
t
$CVS_TAG
ghc
||
exit
1
cvs
-d
$CVS_REPOSITORY
expor
t
$CVS_TAG
hslibs
||
exit
1
VERSION
=
`
sed
-e
's/.*\([0-9]\)\.\([0-9]*\).*/\1.\2/'
ghc/VERSION
`
echo
"*** ...got ghc
$VERSION
"
...
...
@@ -98,15 +111,12 @@ mkdir $BUILD_DIR/SPEC
mkdir
$BUILD_DIR
/SOURCES
mkdir
$BUILD_DIR
/BUILD
mkdir
$BUILD_DIR
/RPMS
mkdir
$BUILD_DIR
/RPMS/
$ARCH
mkdir
$BUILD_DIR
/SRPMS
# !!!not nice
mkdir
$BUILD_DIR
/RPMS/i386
cp
ghc/ghc.spec
$BUILD_DIR
/SPEC/ghc-
${
VERSION
}
.spec
cd
$BUILD_DIR
tar
-cz
--exclude
=
'*CVS'
-f
$BUILD_DIR
/SOURCES/ghc-
$VERSION
-src
.tar.gz fptools
\
||
exit
1
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
...
...
@@ -135,7 +145,7 @@ echo "*** ...made the packages"
echo
"*** Cleaning up..."
cd
$START_DIR
cp
$BUILD_DIR
/SOURCES/ghc-
$VERSION
-src
.tar.gz
.
cp
$BUILD_DIR
/RPMS/ghc
*
.
cp
$BUILD_DIR
/RPMS/
$ARCH
/
ghc
*
.
cp
$BUILD_DIR
/SRPMS/ghc
*
.
rm
-rf
$BUILD_DIR
...
...
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