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
ab7cc22a
Commit
ab7cc22a
authored
Apr 04, 2018
by
Marcus Nordenberg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/fix-grep'
parents
61bed774
31e09f38
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
35 deletions
+35
-35
src/tools/pkg/deb/adm/pwra_env.sh
src/tools/pkg/deb/adm/pwra_env.sh
+7
-7
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
+7
-7
src/tools/pkg/raspbian/adm/pwra_env.sh
src/tools/pkg/raspbian/adm/pwra_env.sh
+7
-7
src/tools/pkg/ubu/adm/pwra_env.sh
src/tools/pkg/ubu/adm/pwra_env.sh
+7
-7
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
+7
-7
No files found.
src/tools/pkg/deb/adm/pwra_env.sh
View file @
ab7cc22a
...
@@ -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
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -66,14 +66,14 @@ pwra_set_func()
...
@@ -66,14 +66,14 @@ pwra_set_func()
# Command is "set project"
# Command is "set project"
project
=
$2
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
echo
"Unable to find project '
$2
'"
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -89,7 +89,7 @@ pwra_set_func()
...
@@ -89,7 +89,7 @@ pwra_set_func()
fi
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
fi
return
return
fi
fi
...
@@ -100,7 +100,7 @@ pwra_set_func()
...
@@ -100,7 +100,7 @@ pwra_set_func()
fi
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
}
pwra_help_func
()
pwra_help_func
()
...
@@ -145,7 +145,7 @@ pwra_parse ()
...
@@ -145,7 +145,7 @@ pwra_parse ()
else
else
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
hw
=
"hw_"
$machine
hw
=
"hw_"
$machine
fi
fi
...
...
src/tools/pkg/deb_x86_64/adm/pwra_env.sh
View file @
ab7cc22a
...
@@ -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
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -66,14 +66,14 @@ pwra_set_func()
...
@@ -66,14 +66,14 @@ pwra_set_func()
# Command is "set project"
# Command is "set project"
project
=
$2
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
echo
"Unable to find project '
$2
'"
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -89,7 +89,7 @@ pwra_set_func()
...
@@ -89,7 +89,7 @@ pwra_set_func()
fi
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
fi
return
return
fi
fi
...
@@ -100,7 +100,7 @@ pwra_set_func()
...
@@ -100,7 +100,7 @@ pwra_set_func()
fi
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
}
pwra_help_func
()
pwra_help_func
()
...
@@ -145,7 +145,7 @@ pwra_parse ()
...
@@ -145,7 +145,7 @@ pwra_parse ()
else
else
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
hw
=
"hw_"
$machine
hw
=
"hw_"
$machine
fi
fi
...
...
src/tools/pkg/raspbian/adm/pwra_env.sh
View file @
ab7cc22a
...
@@ -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
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -60,14 +60,14 @@ pwra_set_func()
...
@@ -60,14 +60,14 @@ pwra_set_func()
# Command is "set project"
# Command is "set project"
project
=
$2
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
echo
"Unable to find project '
$2
'"
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -83,7 +83,7 @@ pwra_set_func()
...
@@ -83,7 +83,7 @@ pwra_set_func()
fi
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
fi
return
return
fi
fi
...
@@ -94,7 +94,7 @@ pwra_set_func()
...
@@ -94,7 +94,7 @@ pwra_set_func()
fi
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
}
pwra_help_func
()
pwra_help_func
()
...
@@ -139,7 +139,7 @@ pwra_parse ()
...
@@ -139,7 +139,7 @@ pwra_parse ()
else
else
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
hw
=
"hw_"
$machine
hw
=
"hw_"
$machine
fi
fi
...
...
src/tools/pkg/ubu/adm/pwra_env.sh
View file @
ab7cc22a
...
@@ -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
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -66,14 +66,14 @@ pwra_set_func()
...
@@ -66,14 +66,14 @@ pwra_set_func()
# Command is "set project"
# Command is "set project"
project
=
$2
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
echo
"Unable to find project '
$2
'"
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -89,7 +89,7 @@ pwra_set_func()
...
@@ -89,7 +89,7 @@ pwra_set_func()
fi
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
fi
return
return
fi
fi
...
@@ -100,7 +100,7 @@ pwra_set_func()
...
@@ -100,7 +100,7 @@ pwra_set_func()
fi
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
}
pwra_help_func
()
pwra_help_func
()
...
@@ -145,7 +145,7 @@ pwra_parse ()
...
@@ -145,7 +145,7 @@ pwra_parse ()
else
else
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
hw
=
"hw_"
$machine
hw
=
"hw_"
$machine
fi
fi
...
...
src/tools/pkg/ubu_x86_64/adm/pwra_env.sh
View file @
ab7cc22a
...
@@ -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
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -66,14 +66,14 @@ pwra_set_func()
...
@@ -66,14 +66,14 @@ pwra_set_func()
# Command is "set project"
# Command is "set project"
project
=
$2
project
=
$2
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"^"
$project
"
\b
"
|
awk
'{print $2}'
`
basename
=
${
basename
//\./\\.
}
basename
=
${
basename
//\./\\.
}
if
[
-z
$basename
]
;
then
if
[
-z
$basename
]
;
then
echo
"Unable to find project '
$2
'"
echo
"Unable to find project '
$2
'"
return
return
fi
fi
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
"
\s
"
$basename
"
\s
"
|
grep
"^"
%base
"
\s
"
|
awk
'{print $3}'
`
baseroot
=
`
eval cat
$pwra_db
/pwr_projectlist.dat |
grep
-a
"
\s
"
$basename
"
\s
"
|
grep
-a
"^"
%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
...
@@ -89,7 +89,7 @@ pwra_set_func()
...
@@ -89,7 +89,7 @@ pwra_set_func()
fi
fi
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
baseroot
$baseroot
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
source
$baseroot
/
$os
/
$hw
/exp/exe/pwrp_env.sh
set
project
$project
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
export
PS1
=
'\u@\h/$pwrp_projectname/-.\W> '
fi
fi
return
return
fi
fi
...
@@ -100,7 +100,7 @@ pwra_set_func()
...
@@ -100,7 +100,7 @@ pwra_set_func()
fi
fi
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
source
$pwr_exe
/pwrp_env.sh
set
$1
$2
$3
}
}
pwra_help_func
()
pwra_help_func
()
...
@@ -145,7 +145,7 @@ pwra_parse ()
...
@@ -145,7 +145,7 @@ pwra_parse ()
else
else
machine
=
"x86"
machine
=
"x86"
fi
fi
os
=
"os_linux"
os
=
"os_linux"
hw
=
"hw_"
$machine
hw
=
"hw_"
$machine
fi
fi
...
...
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