Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
2d74d1f8
Commit
2d74d1f8
authored
Feb 18, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwr_projectlist delimiter changed from \b to \s
parent
11458188
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
11 deletions
+44
-11
src/tools/pkg/deb/adm/pwra_env.sh
src/tools/pkg/deb/adm/pwra_env.sh
+2
-2
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
+14
-3
src/tools/pkg/ubu/adm/pwra_env.sh
src/tools/pkg/ubu/adm/pwra_env.sh
+14
-3
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
+14
-3
No files found.
src/tools/pkg/deb/adm/pwra_env.sh
View file @
2d74d1f8
...
@@ -19,7 +19,7 @@ pwra_set_func()
...
@@ -19,7 +19,7 @@ pwra_set_func()
# Command is "set base"
# Command is "set base"
basename
=
$2
basename
=
$2
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"^"
%base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -67,7 +67,7 @@ pwra_set_func()
...
@@ -67,7 +67,7 @@ pwra_set_func()
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"^"
%base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
...
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
View file @
2d74d1f8
...
@@ -19,7 +19,7 @@ pwra_set_func()
...
@@ -19,7 +19,7 @@ pwra_set_func()
# Command is "set base"
# Command is "set base"
basename
=
$2
basename
=
$2
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -67,7 +67,7 @@ pwra_set_func()
...
@@ -67,7 +67,7 @@ pwra_set_func()
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -117,6 +117,7 @@ EOF
...
@@ -117,6 +117,7 @@ EOF
pwra_parse
()
pwra_parse
()
{
{
unamestr
=
`
eval uname
`
unamestr
=
`
eval uname
`
onamestr
=
`
eval uname
-o
`
machine
=
`
eval uname
-m
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
if
[
$unamestr
==
"Darwin"
]
;
then
os
=
"os_macos"
os
=
"os_macos"
...
@@ -124,8 +125,18 @@ pwra_parse ()
...
@@ -124,8 +125,18 @@ pwra_parse ()
elif
[
$unamestr
==
"FreeBSD"
]
;
then
elif
[
$unamestr
==
"FreeBSD"
]
;
then
os
=
"os_freebsd"
os
=
"os_freebsd"
hw
=
"hw_x86_64"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"OpenBSD"
]
;
then
os
=
"os_openbsd"
hw
=
"hw_x86_64"
elif
[
$onamestr
==
"Cygwin"
]
;
then
os
=
"os_cygwin"
hw
=
"hw_x86"
else
if
[
$machine
==
"x86_64"
]
;
then
machine
=
"x86_64"
elif
[
${
machine
:0:3
}
==
"arm"
]
;
then
machine
=
"arm"
else
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
...
...
src/tools/pkg/ubu/adm/pwra_env.sh
View file @
2d74d1f8
...
@@ -19,7 +19,7 @@ pwra_set_func()
...
@@ -19,7 +19,7 @@ pwra_set_func()
# Command is "set base"
# Command is "set base"
basename
=
$2
basename
=
$2
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -67,7 +67,7 @@ pwra_set_func()
...
@@ -67,7 +67,7 @@ pwra_set_func()
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -117,6 +117,7 @@ EOF
...
@@ -117,6 +117,7 @@ EOF
pwra_parse
()
pwra_parse
()
{
{
unamestr
=
`
eval uname
`
unamestr
=
`
eval uname
`
onamestr
=
`
eval uname
-o
`
machine
=
`
eval uname
-m
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
if
[
$unamestr
==
"Darwin"
]
;
then
os
=
"os_macos"
os
=
"os_macos"
...
@@ -124,8 +125,18 @@ pwra_parse ()
...
@@ -124,8 +125,18 @@ pwra_parse ()
elif
[
$unamestr
==
"FreeBSD"
]
;
then
elif
[
$unamestr
==
"FreeBSD"
]
;
then
os
=
"os_freebsd"
os
=
"os_freebsd"
hw
=
"hw_x86_64"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"OpenBSD"
]
;
then
os
=
"os_openbsd"
hw
=
"hw_x86_64"
elif
[
$onamestr
==
"Cygwin"
]
;
then
os
=
"os_cygwin"
hw
=
"hw_x86"
else
if
[
$machine
==
"x86_64"
]
;
then
machine
=
"x86_64"
elif
[
${
machine
:0:3
}
==
"arm"
]
;
then
machine
=
"arm"
else
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
...
...
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
View file @
2d74d1f8
...
@@ -19,7 +19,7 @@ pwra_set_func()
...
@@ -19,7 +19,7 @@ pwra_set_func()
# Command is "set base"
# Command is "set base"
basename
=
$2
basename
=
$2
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -67,7 +67,7 @@ pwra_set_func()
...
@@ -67,7 +67,7 @@ pwra_set_func()
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
b
"
$basename
"
\b
"
|
grep
"
\b
"
base
"
\b
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\
s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
if
[
-z
$baseroot
]
;
then
if
[
-z
$baseroot
]
;
then
echo
"Unable to find base '
$2
'"
echo
"Unable to find base '
$2
'"
return
return
...
@@ -117,6 +117,7 @@ EOF
...
@@ -117,6 +117,7 @@ EOF
pwra_parse
()
pwra_parse
()
{
{
unamestr
=
`
eval uname
`
unamestr
=
`
eval uname
`
onamestr
=
`
eval uname
-o
`
machine
=
`
eval uname
-m
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
if
[
$unamestr
==
"Darwin"
]
;
then
os
=
"os_macos"
os
=
"os_macos"
...
@@ -124,8 +125,18 @@ pwra_parse ()
...
@@ -124,8 +125,18 @@ pwra_parse ()
elif
[
$unamestr
==
"FreeBSD"
]
;
then
elif
[
$unamestr
==
"FreeBSD"
]
;
then
os
=
"os_freebsd"
os
=
"os_freebsd"
hw
=
"hw_x86_64"
hw
=
"hw_x86_64"
elif
[
$unamestr
==
"OpenBSD"
]
;
then
os
=
"os_openbsd"
hw
=
"hw_x86_64"
elif
[
$onamestr
==
"Cygwin"
]
;
then
os
=
"os_cygwin"
hw
=
"hw_x86"
else
if
[
$machine
==
"x86_64"
]
;
then
machine
=
"x86_64"
elif
[
${
machine
:0:3
}
==
"arm"
]
;
then
machine
=
"arm"
else
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment