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
d3cea841
Commit
d3cea841
authored
Jun 07, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
e65b2b5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
0 deletions
+81
-0
build.sh
build.sh
+73
-0
makefile
makefile
+8
-0
No files found.
build.sh
0 → 100755
View file @
d3cea841
#!/bin/bash
root
=
`
eval pwd
`
if
[
-e
$root
/src/exp/inc/src/pwr_version.h
]
;
then
verl
=
`
eval cat
$root
/src/exp/inc/src/pwr_version.h |
grep
"
\b
pwrv_cPwrVersionStr
\b
"
|
awk
'{print $3}'
`
verl
=
${
verl
:1:6
}
ver
=
${
verl
:0:2
}${
verl
:3:1
}${
verl
:5:1
}
fi
# Check pwra
aroot
=
/usr/local/adm
if
[
!
-e
$aroot
/db
]
;
then
if
mkdir
-p
$aroot
/db 2>/dev/null
;
then
echo
"Administration directory created:
$aroot
/db"
cp
-u
$root
/src/tools/pkg/deb/adm/pwr
*
$aroot
/db/
else
echo
"Unable to create a global administration directory
$aroot
/db"
aroot
=
$root
/adm
echo
"Using local administration directory
$aroot
/db"
if
mkdir
-p
$aroot
/db
;
then
cp
-u
$root
/src/tools/pkg/deb/adm/pwr
*
$aroot
/db/
else
echo
"Unable to create local administration directory
$aroot
/db"
fi
fi
fi
# Insert base in projectlist
if
[
!
-e
$aroot
/db/pwr_projectlist.dat
]
;
then
echo
"Creating
$aroot
/db/pwr_projectlist.dat"
echo
"%base
$verl
$root
/rls"
>
$aroot
/db/pwr_projectlist.dat
else
set
+e
ptst
=
`
eval grep
"^%base"
$aroot
/db/pwr_projectlist.dat |
grep
"
\b
$verl
\b
"
`
set
-e
if
[
"
$ptst
"
=
""
]
;
then
echo
"Adding base to
$aroot
/db/pwr_projectlist.dat"
echo
"%base
$verl
$root
/rls"
>>
$aroot
/db/pwr_projectlist.dat
else
echo
"Base
$verl
already exist in
$aroot
/db/pwr_projectlist.dat"
fi
fi
# Setup pwre
export
pwre_bin
=
$root
/src/tools/pwre/src/os_linux
export
pwre_env_db
=
$root
/pwre_db
source
$pwre_bin
/pwre_function
# Add pwre environment
btype
=
"dbg"
os
=
"linux"
hw
=
"x86"
ename
=
$ver$hw
desc
=
$verl
pwre add
$ename
$root
/src
$root
/rls
$btype
$os
$hw
"
$desc
"
pwre init
$ename
# Build
pwre create_all_modules
pwre build_all_modules
echo
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo
""
echo
"Add the following lines to your .bashrc-file"
echo
""
echo
"export pwra_db=
$aroot
/db"
echo
"source
\$
pwra_db/pwr_setup.sh"
echo
"pwrp set base
$verl
"
echo
""
echo
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
makefile
0 → 100644
View file @
d3cea841
pwr_top
:
build_pwr
build_pwr
:
@
if
./build.sh
;
then
\
echo
"Proview built"
;
\
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