Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
95b60d1b
Commit
95b60d1b
authored
18 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
merge init-element-branch -> trunk
parent
3cb3d153
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
gen-assemble-fcts.sh
+90
-0
90 additions, 0 deletions
gen-assemble-fcts.sh
with
90 additions
and
0 deletions
gen-assemble-fcts.sh
0 → 100755
+
90
−
0
View file @
95b60d1b
#! /bin/sh
if
test
"$#"
-eq
4
then
DST_DOWB_ST
=
$1
SRC_DOWB_ST
=
$1
LALT_DOWB_ST
=
$2
LB_DOWB_ST
=
$3
C_DOWB_ST
=
$4
elif
test
"$#"
-eq
2
then
DST_DOWB_ST
=
$1
SRC_DOWB_ST
=
$2
LALT_DOWB_ST
=
$2
LB_DOWB_ST
=
$2
C_DOWB_ST
=
$2
else
exec
1>&2
echo
$0
DST_TYPE SRC_TYPE
echo
***
or
***
echo
$0
DST_TYPE LALt_TYPE LB_TYPE C_TYPE
exit
1
fi
SED_STRING
=
""
for
target
in
DST SRC LALT LB C
;
do
DOWB_ST
=
${
target
}
_DOWB_ST
TYPE
=
${
target
}
_TYPE
RET_TYPE
=
${
target
}
_RET_TYPE
PTR_TYPE
=
${
target
}
_PTR_TYPE
DOWB_NAME
=
${
target
}
_DOWB_NAME
CONSTCAST
=
${
target
}
_CONSTCAST
type
=
`
eval echo
\$\{
${
DOWB_ST
}
\}
`
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
DOWB_ST
}
@|
${
type
}
|g'"
case
${
type
}
in
M
)
case
${
target
}
in
LALT
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_BDD *|g'"
;;
LB
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_DD *|g'"
;;
C
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_D *|g'"
;;
esac
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
TYPE
}
@|REAL_DD|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
PTR_TYPE
}
@|REAL_D *|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
DOWB_NAME
}
@|full|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
CONSTCAST
}
@|(const REAL_D *)|g'"
;;
DM
)
case
${
target
}
in
LALT
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_BD *|g'"
;;
LB
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_D *|g'"
;;
C
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL *|g'"
;;
esac
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
TYPE
}
@|REAL_D|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
PTR_TYPE
}
@|REAL *|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
DOWB_NAME
}
@|diag|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
CONSTCAST
}
@|/**/|g'"
;;
SCM
)
case
${
target
}
in
LALT
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL_B *|g'"
;;
LB
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|const REAL *|g'"
;;
C
)
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
RET_TYPE
}
@|REAL |g'"
;;
esac
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
TYPE
}
@|REAL|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
PTR_TYPE
}
@|NOT_NEEDED|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
DOWB_NAME
}
@|scal|g'"
SED_STRING
=
"
${
SED_STRING
}
-e 's|@
${
CONSTCAST
}
@|/**/|g'"
;;
esac
done
eval sed
${
SED_STRING
}
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