Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
6a2e89fb
Commit
6a2e89fb
authored
23 years ago
by
Martin Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
This is broken. We want better module management than this anyway.
Rev: bin/install_module:1.3(DEAD)
parent
35f47316
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/install_module
+0
-62
0 additions, 62 deletions
bin/install_module
with
0 additions
and
62 deletions
bin/install_module
deleted
100755 → 0
+
0
−
62
View file @
35f47316
#!/bin/sh
# install_module <from> <to>
FROM
=
"
$1
"
TO
=
"
$2
"
DIRS_TO_MAKE
=
DIR
=
"
$TO
"
while
:
do
DIR
=
`
echo
$DIR
|
sed
-e
's@/[^/]*$@@'
`
case
"
$DIR
"
in
*
.pmod
)
if
[
-d
"
$DIR
"
]
;
then
break
else
:
fi
if
[
-f
"
$DIR
"
]
;
then
mv
"
$DIR
"
"
$DIR
-foo"
mkdir
$DIR
mv
"
$DIR
-foo"
"
$DIR
/module.pmod"
break
fi
BASE
=
`
echo
$DIR
|
sed
-e
's/\.[^.]*$//'
`
if
[
-f
"
$BASE
.so"
]
;
then
mkdir
"
$DIR
"
mv
"
$BASE
.so"
"
$DIR
/module.so"
break
fi
#FIXME: Add sed expression to quote spaces, quotes etc. in $DIR
DIRS_TO_MAKE
=
"
$DIR
$DIRS_TO_MAKE
"
;;
*
)
break
;;
esac
done
BASE
=
`
echo
$TO
|
sed
-e
's/\.[^.]*$//'
`
if
test
"x
$DIRS_TO_MAKE
"
!=
x
;
then
mkdir
$DIRS_TO_MAKE
else
:
fi
if
[
-d
"
$BASE
.pmod"
]
;
then
EXT
=
`
echo
$TO
|
sed
-e
's@(\.[^.]$)@\1@/'
`
TO
=
"
$BASE
.pmod/module.
$EXT
"
fi
exec cp
"
$FROM
"
"
$TO
"
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