Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
c2f1e290
Commit
c2f1e290
authored
13 years ago
by
Timothy Lebo
Browse files
Options
Downloads
Patches
Plain Diff
added slash to ns for #2
parent
5607f0c8
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
install.sh
+14
-20
14 additions, 20 deletions
install.sh
with
14 additions
and
20 deletions
install.sh
+
14
−
20
View file @
c2f1e290
...
@@ -33,38 +33,33 @@ while [ "$everything_ok" != "y" ]; do
...
@@ -33,38 +33,33 @@ while [ "$everything_ok" != "y" ]; do
echo
echo
aux_basedir
=
"
`
echo
$aux_basedir
|
sed
's/\/$//'
`
/"
# remove any ending slash and append one.
aux_basedir
=
"
`
echo
$aux_basedir
|
sed
's/\/$//'
`
/"
# remove any ending slash and append one.
if
[
"
$aux_basedir
"
!=
"/"
]
;
then
if
[
"
$aux_basedir
"
!=
"/"
]
;
then
basedir
=
`
dirname
$aux_basedir
`
basedir
=
`
dirname
$aux_basedir
|
sed
's/\/$//'
`
/
fi
fi
ns
=
$basedir
ns
=
$basedir
echo
"(2/3) What local namespace you will use?"
echo
"(2/3) What local namespace you will use?"
echo
-n
"(default '
$ns
'): "
echo
-n
"(default '
$ns
'): "
read
-u
1 aux_ns
read
-u
1 aux_ns
echo
""
echo
""
if
[
"
$aux_ns
"
!=
""
]
if
[
"
$aux_ns
"
!=
""
]
;
then
then
ns
=
$aux_ns
ns
=
$aux_ns
fi
fi
external
=
""
external
=
""
extra
=
""
extra
=
""
if
[[
"
$basedir
"
=
~ ^
"
$ns
"
]]
;
then
if
[[
"
$basedir
"
=
~ ^
"
$ns
"
]]
;
then
external
=
"false"
external
=
"false"
else
else
external
=
"true"
external
=
"true"
extra
=
"
\$
conf['ns']['base'] = '
$basedir
';"
extra
=
"
\$
conf['ns']['base'] = '
$basedir
';"
fi
fi
echo
"(3/3) What is the URL of your SPARQL endpoint?"
echo
"(3/3) What is the URL of your SPARQL endpoint?"
echo
-n
"(default
$endpoint
): "
echo
-n
"(default
$endpoint
): "
read
-u
1 aux_endpoint
read
-u
1 aux_endpoint
echo
""
echo
""
if
[
"
$aux_endpoint
"
!=
""
]
if
[
"
$aux_endpoint
"
!=
""
]
;
then
then
endpoint
=
$aux_endpoint
endpoint
=
$aux_endpoint
fi
fi
echo
"== Configuration =="
echo
"== Configuration =="
...
@@ -77,15 +72,14 @@ while [ "$everything_ok" != "y" ]; do
...
@@ -77,15 +72,14 @@ while [ "$everything_ok" != "y" ]; do
echo
-n
"Is everything ok (y/n)?"
echo
-n
"Is everything ok (y/n)?"
read
-u
1 everything_ok
read
-u
1 everything_ok
done
done
if
[
-e
"
$settings_file
"
]
;
then
if
[
-e
"
$settings_file
"
]
;
then
ts
=
`
date
+%s
`
ts
=
`
date
+%s
`
settings_backup
=
"
$settings_file
.
$ts
"
settings_backup
=
"
$settings_file
.
$ts
"
echo
"Making a backup of existing settings at
$settings_backup
"
echo
"Making a backup of existing settings at
$settings_backup
"
mv
$settings_file
$settings_backup
mv
$settings_file
$settings_backup
fi
fi
LODSPEAKR_HOME
=
`
pwd
`
/
LODSPEAKR_HOME
=
`
pwd
`
/
...
...
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