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
97d0b537
Commit
97d0b537
authored
Nov 08, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to ubuntu
parent
b7f4a4de
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
42 additions
and
31 deletions
+42
-31
src/tools/pkg/ubu/pwr/build.sh
src/tools/pkg/ubu/pwr/build.sh
+7
-8
src/tools/pkg/ubu/pwr/control
src/tools/pkg/ubu/pwr/control
+2
-2
src/tools/pkg/ubu/pwr/postinst
src/tools/pkg/ubu/pwr/postinst
+10
-7
src/tools/pkg/ubu/pwr/prerm
src/tools/pkg/ubu/pwr/prerm
+1
-1
src/tools/pkg/ubu/pwrdemo/build.sh
src/tools/pkg/ubu/pwrdemo/build.sh
+1
-1
src/tools/pkg/ubu/pwrdemo/control
src/tools/pkg/ubu/pwrdemo/control
+2
-2
src/tools/pkg/ubu/pwrdemo/postinst
src/tools/pkg/ubu/pwrdemo/postinst
+2
-0
src/tools/pkg/ubu/pwrdemo/prerm
src/tools/pkg/ubu/pwrdemo/prerm
+1
-0
src/tools/pkg/ubu/pwrrt/build.sh
src/tools/pkg/ubu/pwrrt/build.sh
+4
-4
src/tools/pkg/ubu/pwrrt/control
src/tools/pkg/ubu/pwrrt/control
+8
-2
src/tools/pkg/ubu/pwrrt/postinst
src/tools/pkg/ubu/pwrrt/postinst
+3
-3
src/tools/pkg/ubu/pwrrt/prerm
src/tools/pkg/ubu/pwrrt/prerm
+1
-1
No files found.
src/tools/pkg/ubu/pwr/build.sh
View file @
97d0b537
#!/bin/bash
aroot
=
"/usr/pwrp/adm"
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwr
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/ubu/pwr
# Get version
if
[
-e
$pwr_inc
/pwr_version.h
]
;
then
...
...
@@ -15,11 +17,11 @@ fi
# Generate version help file
{
if
[
!
-e
$p
wre_sroot
/tools/pkg/deb/pwr
/control
]
;
then
if
[
!
-e
$p
kgsrc
/control
]
;
then
echo
"Controlfile not found"
exit
1
fi
datfile
=
$p
wre_sroot
/tools/pkg/deb/pwr
/control
datfile
=
$p
kgsrc
/control
echo
"<topic> version"
d
=
`
eval date
+
\"
%F %X
\"
`
...
...
@@ -84,9 +86,6 @@ if [ "$1" == "-v" ]; then
exit
fi
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwr
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/deb/pwr
echo
"-- Building pwr
$ver
"
# Create directories
...
...
@@ -99,7 +98,7 @@ find $pkgroot -type d | xargs chmod 755
# control
cp
$pkgsrc
/control
$pkgroot
/DEBIAN
echo
"#!/bin/sh"
>
$pkgroot
/DEBIAN/postinst
echo
"#!/bin/
ba
sh"
>
$pkgroot
/DEBIAN/postinst
echo
"ver=
\"
$ver
\"
"
>>
$pkgroot
/DEBIAN/postinst
echo
"pwre_target=
\"
$pwre_target
\"
"
>>
$pkgroot
/DEBIAN/postinst
cat
$pkgsrc
/postinst
>>
$pkgroot
/DEBIAN/postinst
...
...
@@ -161,10 +160,10 @@ mkdir $pkgroot/usr/pwr$ver/$pwre_target/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
echo
"source
$aroot
/db/pwr_setup.sh"
>>
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bashrc
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.mwmrc
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
#
cp $pwre_sroot/tools/pkg/deb/user/.mwmrc $pkgroot/usr/pwr$ver/$pwre_target/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xsession
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
#
cp $pwre_sroot/tools/pkg/deb/user/.xsession $pkgroot/usr/pwr$ver/$pwre_target/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/wtt_init.pwr_com
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/wtt_init1.pwr_com
$pkgroot
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user
...
...
src/tools/pkg/ubu/pwr/control
View file @
97d0b537
Package: pwr44
Version: 4.4.
2-1
Version: 4.4.
4-2
Section: base
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.
3.6), libgtk2.0-0 (>= 2.8.16-0ubuntu1.1), libasound2 (>= 1.0.10-2ubuntu4), libdb4.3 (>=4.3.29
)
Depends: libc6 (>= 2.
5-0ubuntu14), libgtk2.0-0 (>= 2.10.11-0ubuntu3), libasound2 (>= 1.0.13-1ubuntu5), libdb4.4 (>=4.4.20-8ubuntu2
)
Replaces: pwrrt,pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
Maintainer: Proview <postmaster@proview.se>
Description: Proview development and runtime environment package
...
...
src/tools/pkg/ubu/pwr/postinst
View file @
97d0b537
#!/bin/sh
#!/bin/
ba
sh
set
-e
# ver=""
# pwre_target=""
echo
"
Here in postinst...
"
echo
"
Executing postinst
"
# Automatically added by dh_installdocs
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-d
/usr/doc
-a
!
-e
/usr/doc/pwrtest
-a
-d
/usr/share/doc/pwrtest
]
;
then
...
...
@@ -14,6 +14,9 @@ fi
# End automatically added section
aroot
=
"/usr/pwrp/adm"
vermajor
=
${
ver
:0:1
}
verminor
=
${
ver
:1:1
}
verstr
=
"V
$vermajor
.
$verminor
"
# Create group pwrp
if
!
grep
-q
"
\b
pwrp:"
/etc/group
;
then
...
...
@@ -30,12 +33,12 @@ if ! grep -q "\bpwrp:" /etc/passwd; then
fi
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bashrc /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.mwmrc /home/pwrp
#
cp /usr/pwr$ver/$pwre_target/exp/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/.xsession /home/pwrp
#
cp /usr/pwr$ver/$pwre_target/exp/cnf/user/.xsession /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/wtt_init.pwr_com /home/pwrp
cp
/usr/pwr
$ver
/
$pwre_target
/exp/cnf/user/wtt_init1.pwr_com /home/pwrp
...
...
@@ -84,13 +87,13 @@ fi
# Insert base in projectlist
if
[
!
-e
$aroot
/db/pwr_projectlist.dat
]
;
then
echo
"%base
V
${
ver
:0:1
}
.
${
ver
:1:1
}
/usr/pwr
$ver
"
>
$aroot
/db/pwr_projectlist.dat
echo
"%base
$verstr
/usr/pwr
$ver
"
>
$aroot
/db/pwr_projectlist.dat
else
set
+e
ptst
=
`
eval grep
"^%base"
$aroot
/db/pwr_projectlist.dat |
grep
"
\b
V
${
ver
:0:1
}
.
${
ver
:1:1
}
\b
"
`
ptst
=
`
eval grep
"^%base"
$aroot
/db/pwr_projectlist.dat |
grep
"
\b
$verstr
\b
"
`
set
-e
if
[
"
$ptst
"
=
""
]
;
then
echo
"%base
V
${
ver
:0:1
}
.
${
ver
:1:1
}
/usr/pwr
$ver
"
>>
$aroot
/db/pwr_projectlist.dat
echo
"%base
$verstr
/usr/pwr
$ver
"
>>
$aroot
/db/pwr_projectlist.dat
fi
fi
...
...
src/tools/pkg/ubu/pwr/prerm
View file @
97d0b537
#!/bin/sh
#!/bin/
ba
sh
set
-e
echo
"Here in prerm..."
# Automatically added by dh_installdocs
...
...
src/tools/pkg/ubu/pwrdemo/build.sh
View file @
97d0b537
...
...
@@ -13,7 +13,7 @@ if [ -e $pwr_inc/pwr_version.h ]; then
ver
=
${
ver
:2:2
}
fi
proot
=
/data
0
/pwrp/pwrdemo
$ver
proot
=
/data
1
/pwrp/pwrdemo
$ver
pkgroot
=
$pwre_broot
/
$pwre_target
/bld/pkg/pwrdemo
$ver
pkgsrc
=
$pwre_sroot
/tools/pkg/deb/pwrdemo
...
...
src/tools/pkg/ubu/pwrdemo/control
View file @
97d0b537
Package: pwrdemo44
Version: 4.4.
2-1
Version: 4.4.
4-2
Section: base
Priority: optional
Architecture: i386
Depends: pwr44 (>= 4.4.
2-1
)
Depends: pwr44 (>= 4.4.
4-2
)
Replaces:
Maintainer: Proview <postmaster@proview.se>
Description: Proview Demo Project package
...
...
src/tools/pkg/ubu/pwrdemo/postinst
View file @
97d0b537
#!/bin/bash
#
set
-e
# Added by build.sh :
# ver=""
...
...
src/tools/pkg/ubu/pwrdemo/prerm
View file @
97d0b537
#!/bin/bash
#
# ver='version' is added by build.sh
#
...
...
src/tools/pkg/ubu/pwrrt/build.sh
View file @
97d0b537
...
...
@@ -157,19 +157,19 @@ cp $pkgsrc/proview.cnf $pkgroot/usr/pwrrt/cnf
mkdir
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bashrc
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.bash_profile
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.mwmrc
$pkgroot
/usr/pwrrt/cnf/op
#
cp $pwre_sroot/tools/pkg/deb/op/.mwmrc $pkgroot/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.rtt_start
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xtt_start
$pkgroot
/usr/pwrrt/cnf/op
cp
$pwre_sroot
/tools/pkg/deb/op/.xsession
$pkgroot
/usr/pwrrt/cnf/op
#
cp $pwre_sroot/tools/pkg/deb/op/.xsession $pkgroot/usr/pwrrt/cnf/op
# Copy user to cnf
mkdir
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bashrc
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.bash_profile
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.mwmrc
$pkgroot
/usr/pwrrt/cnf/user
#
cp $pwre_sroot/tools/pkg/deb/user/.mwmrc $pkgroot/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.rtt_start
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xtt_start
$pkgroot
/usr/pwrrt/cnf/user
cp
$pwre_sroot
/tools/pkg/deb/user/.xsession
$pkgroot
/usr/pwrrt/cnf/user
#
cp $pwre_sroot/tools/pkg/deb/user/.xsession $pkgroot/usr/pwrrt/cnf/user
# Create package
echo
"-- Building package"
...
...
src/tools/pkg/ubu/pwrrt/control
View file @
97d0b537
Package: pwrrt
Version: 4.4.
2-1
Version: 4.4.
4-2
Section: base
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.
3.6), libgtk2.0-0 (>= 2.8.29-0ubuntu1.1), libasound2 (>= 1.0.10-2ubuntu4), libdb4.3 (>=4.3.29
)
Depends: libc6 (>= 2.
5-0ubuntu14), libgtk2.0-0 (>= 2.10.11-0ubuntu3), libasound2 (>= 1.0.13-1ubuntu5), libdb4.4 (>=4.4.20-8ubuntu2
)
Replaces: pwr34,pwr39,pwr40,pwr41,pwr42,pwr43,pwr44
Maintainer: Proview <postmaster@proview.se>
Description:
...
...
@@ -23,3 +23,9 @@ Description:
4.4.2-1
- Subgraphs for ventilation and circuit diagrams added.
- Baseobjects for threewayvalves, filters and dampers added.
4.4.4-1
- Function to suppress alarms in basecomponents added.
- Classes IpDistribute, IpCollect, Demux, IDemux, GetDpPtr, StoDpPtr,
Eurotherm_TC3001, Eurotherm_TC3001Aggr and more added.
4.4.4-2
- Bugfix in gtk operatorwindow, long alarmtext could cause segfault
src/tools/pkg/ubu/pwrrt/postinst
View file @
97d0b537
#!/bin/sh
#!/bin/
ba
sh
set
-e
if
[
"
$pwrrt_xtrace
"
!=
""
]
;
then
set
-o
xtrace
...
...
@@ -43,12 +43,12 @@ if ! grep -q "\bpwrp:" /etc/passwd; then
fi
cp
/usr/pwrrt/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwrrt/cnf/user/.mwmrc /home/pwrp
#
cp /usr/pwrrt/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwrrt/cnf/user/.xsession /home/pwrp
#
cp /usr/pwrrt/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
...
...
src/tools/pkg/ubu/pwrrt/prerm
View file @
97d0b537
#!/bin/sh
#!/bin/
ba
sh
set
-e
# Automatically added by dh_installdocs
...
...
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