Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Jon Boone
cmucl
Commits
15db498a
Commit
15db498a
authored
13 years ago
by
Alex Goncharov
Browse files
Options
Downloads
Patches
Plain Diff
tools/create-target.sh: merge from dynamic-stack-alloc
parent
4be42bd6
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
tools/create-target.sh
+13
-10
13 additions, 10 deletions
tools/create-target.sh
with
13 additions
and
10 deletions
tools/create-target.sh
+
13
−
10
View file @
15db498a
#!/bin/sh
quit
()
{
echo
"
$@
"
>
&2
;
exit
1
;
}
diag
()
{
echo
"(
$prgm_name
)
$@
"
>
&2
;
}
quit
()
{
diag
"not OK:
$@
"
;
exit
1
;
}
usage
()
{
echo
"Usage:
`
basename
$0
`
TARGET-DIR [LISP-VARIANT [MOTIF-VARIANT]]"
echo
"Usage:
$prgm_name
TARGET-DIR [LISP-VARIANT [MOTIF-VARIANT]]"
echo
""
echo
"Creates a directory structure in TARGET-DIR for use in building CMUCL."
echo
"A simple logic is used to find the optional -VARIANT parameters."
echo
""
# List possible values for lisp-variant and motif-variant
echo
"Possible LISP-VARIANTs
(don't trust what you see)
:"
echo
"Possible LISP-VARIANTs:"
(
cd
src/lisp/
&&
ls
-1
Config.
*
)
|
sed
's;^Config[.];;g'
|
pr
-3at
-o
8
||
quit
"Can't list lisp-variants"
echo
"Possible MOTIF-VARIANTs
(don't trust what you see)
:"
echo
"Possible MOTIF-VARIANTs:"
(
cd
src/motif/server/
&&
ls
-1
Config.
*
)
|
sed
's;^Config[.];;g'
|
pr
-3at
-o
8
||
quit
"Can't list lisp-variants"
exit
2
}
bld_dir
=
$1
lisp_variant
=
$2
motif_variant
=
$3
##--
prgm_name
=
`
basename
$0
`
bld_dir
=
$1
lisp_variant
=
$2
motif_variant
=
$3
exec
2>&1
case
$bld_dir
in
build-
*
)
:
;;
*
)
usage
;;
esac
[
-n
"
$bld_dir
"
]
||
usage
uname_s
=
`
uname
-s
`
uname_m
=
`
uname
-m
2>/dev/null
`
[
-n
"
$lisp_variant
"
]
||
{
...
...
@@ -40,7 +43,7 @@ uname_m=`uname -m 2>/dev/null`
*
)
quit
"Unsupported OS:
$uname_s
"
;;
esac
}
[
-n
"
$lisp_variant
"
]
||
quit
"
Failed to
determine lisp_variant"
[
-n
"
$lisp_variant
"
]
||
quit
"
Can't
determine lisp_variant"
[
-f
src/lisp/Config.
$lisp_variant
]
||
quit
"Config.
$lisp_variant
not found"
case
$lisp_variant
in
...
...
@@ -74,10 +77,10 @@ case $uname_s in
esac
# Tell user what's we've configured
echo
"
bld_dir=
$bld_dir
lisp_variant=
$lisp_variant
${
motif_variant
:+motif_variant
=
$motif_variant
}
"
diag
"Settings:
bld_dir=
$bld_dir
lisp_variant=
$lisp_variant
${
motif_variant
:+motif_variant
=
$motif_variant
}
"
# Create a directory tree that mirrors the source directory tree
[
-e
"
$bld_dir
"
]
&&
quit
"
delete thi
s:
`
ls
-ld
$bld_dir
`
"
[
-e
"
$bld_dir
"
]
&&
quit
"
Exist
s:
`
ls
-ld
$bld_dir
`
"
mkdir
-p
"
$bld_dir
"
(
cd
src
&&
find
.
-name
.git
-prune
-o
-type
d
-print
)
|
(
cd
$bld_dir
&&
xargs
mkdir
-p
)
||
quit
"Can't create target directories"
...
...
@@ -104,4 +107,4 @@ echo '#error You need to run genesis (via build-world.sh) before compiling the s
solaris
)
cat
$setenv_dir
/solaris-features.lisp
;;
*
)
sed
"s;@@LISP@@;
$lisp_variant
;"
$setenv_dir
/unknown.lisp
;;
esac
)
>
setenv.lisp
||
quit
"
Failed
create setenv.lisp"
)
>
../
setenv.lisp
||
quit
"
Can't
create setenv.lisp"
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