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
5b2e9615
Commit
5b2e9615
authored
Dec 21, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copying of mysql databases at copy project
parent
699d30c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
161 additions
and
109 deletions
+161
-109
src/exp/com/src/os_linux/pwrp_env.sh
src/exp/com/src/os_linux/pwrp_env.sh
+140
-103
wb/changelog.txt
wb/changelog.txt
+3
-1
wb/lib/wb/src/wb_pvd_pl.cpp
wb/lib/wb/src/wb_pvd_pl.cpp
+18
-5
No files found.
src/exp/com/src/os_linux/pwrp_env.sh
View file @
5b2e9615
...
@@ -100,8 +100,7 @@ pwrc_check_project_name()
...
@@ -100,8 +100,7 @@ pwrc_check_project_name()
#
#
# Get the databases in a project
# Get the databases in a project
#
#
# Arguments 1: project name
# Arguments 1: project root
# 2: project root
# Returns pwrc_status : 0 Success
# Returns pwrc_status : 0 Success
#
#
#
#
...
@@ -109,15 +108,16 @@ pwrc_dblist_read()
...
@@ -109,15 +108,16 @@ pwrc_dblist_read()
{
{
local
volume
local
volume
local
volid
local
volid
local
dbid
local
volclass
local
volclass
local
pname
=
$1
local
volcnf
local
proot
=
$2
local
volenum
local
volserver
local
dbfile
local
dbfile
local
db
local
db
local
proot
=
$1
let
i
=
0
let
i
=
0
let
j
=
0
let
j
=
0
let
found
=
0
let
k
=
0
pwrc_status
=
$pwrc__success
pwrc_status
=
$pwrc__success
...
@@ -125,38 +125,41 @@ pwrc_dblist_read()
...
@@ -125,38 +125,41 @@ pwrc_dblist_read()
unset
db_array
unset
db_array
fi
fi
# Add directory db
dbfile
=
$proot
/src/db/pwrp_cnf_volumelist.dat
db_array[
$i
]=
$pname
"_"
$pwr_dbversion
i
=
$i
+1
dbfile
=
$proot
/common/db/pwrp_cnf_volumelist.dat
if
[
!
-e
$dbfile
]
;
then
if
[
!
-e
$dbfile
]
;
then
echo
"Can't find
$dbfile
"
echo
"Can't find
$dbfile
"
pwrc_status
=
$pwrc__notconfigured
return
return
fi
fi
while
read
volume volid
dbid volclass
;
do
while
read
volume volid
volclass volcnf volenum volserver
;
do
if
[
-n
"
$volume
"
]
&&
[
"
${
volume
:0:1
}
"
!=
"!"
]
;
then
if
[
-n
"
$volume
"
]
&&
[
"
${
volume
:0:1
}
"
!=
"!"
]
;
then
db
=
$pname
"_"
$dbid
"_"
$pwr_dbversion
if
[
$volcnf
==
"cnf"
]
;
then
if
[
$volclass
==
"ClassVolume"
]
;
then
# Check that the db is not already inserted
if
[
$volenum
-eq
0
]
;
then
found
=
0
wbl_array[
$k
]=
`
eval echo
$volume
|
tr
"[:upper:]"
"[:lower:]"
`
j
=
0
k
=
$k
+1
while
[
"
${
db_array
[
$j
]
}
"
!=
""
]
;
do
elif
[
$volenum
-eq
1
]
;
then
if
[
"
${
db_array
[
$j
]
}
"
==
$db
]
;
then
db_array[
$i
]=
`
eval echo
$volume
|
tr
"[:upper:]"
"[:lower:]"
`
found
=
1
i
=
$i
+1
break
;
elif
[
$volenum
-eq
2
]
;
then
dbms_array[
$j
]=
`
eval echo
$volume
|
tr
"[:upper:]"
"[:lower:]"
`
dbms_server_array[
$j
]=
$volserver
j
=
$j
+1
fi
else
if
[
$volenum
-eq
0
]
;
then
db_array[
$i
]=
`
eval echo
$volume
|
tr
"[:upper:]"
"[:lower:]"
`
i
=
$i
+1
elif
[
$volenum
-eq
1
]
;
then
dbms_array[
$j
]=
`
eval echo
$volume
|
tr
"[:upper:]"
"[:lower:]"
`
dbms_server_array[
$j
]=
$volserver
j
=
$j
+1
fi
fi
fi
j
=
$j
+1
done
if
[
$found
-eq
0
]
;
then
db_array[
$i
]=
$db
i
=
$i
+1
fi
fi
fi
fi
done
<
$dbfile
done
<
$dbfile
}
}
...
@@ -351,7 +354,7 @@ pwrc_prlist_add()
...
@@ -351,7 +354,7 @@ pwrc_prlist_add()
let i=0
let i=0
shift
shift
echo "
Adding
project
$1
"
echo "
-- Adding project
$1
to ProjectList
"
# Check if project exist
# Check if project exist
pwrc_prlist_get_index
$1
pwrc_prlist_get_index
$1
...
@@ -630,7 +633,7 @@ EOF
...
@@ -630,7 +633,7 @@ EOF
return
return
fi
fi
pwrc_prlist_add $@
pwrc_prlist_add $@
pwrc_prlist_write
#
pwrc_prlist_write
if [ $pwrc_status -ne $pwrc__success ]; then
if [ $pwrc_status -ne $pwrc__success ]; then
return
return
fi
fi
...
@@ -688,7 +691,7 @@ pwrc_add_func()
...
@@ -688,7 +691,7 @@ pwrc_add_func()
if [ $pwrc_status -ne $pwrc__success ]; then
if [ $pwrc_status -ne $pwrc__success ]; then
return
return
fi
fi
pwrc_prlist_write
#
pwrc_prlist_write
if [ $pwrc_status -ne $pwrc__success ]; then
if [ $pwrc_status -ne $pwrc__success ]; then
return
return
fi
fi
...
@@ -729,7 +732,7 @@ pwrc_delete_func()
...
@@ -729,7 +732,7 @@ pwrc_delete_func()
proot=${root_array[$pwrc_current_index]}
proot=${root_array[$pwrc_current_index]}
pwrc_dblist_read $p
name $p
root
pwrc_dblist_read $proot
if [ -z $confirm ] || [ $confirm != "noconfirm" ]; then
if [ -z $confirm ] || [ $confirm != "noconfirm" ]; then
echo "Delete project will"
echo "Delete project will"
...
@@ -743,9 +746,25 @@ pwrc_delete_func()
...
@@ -743,9 +746,25 @@ pwrc_delete_func()
fi
fi
fi
fi
# Delete mysql databases
pwrc_dblist_read $proot
i=0
while [ "${dbms_array[$i]}" != "" ]; do
dbname="pwrp_"$pname"__"${dbms_array[$i]}
if mysqladmin -h ${dbms_server_array[$i]} -upwrp drop $dbname -f
then
echo "-- Mysql database $dbname deleted"
else
echo "** Unable to delete mysql database $dbname"
fi
i=$i+1
done
if [ ! -e "$proot" ]; then
if [ ! -e "$proot" ]; then
# Project root doesn'
t
exist, remove from projectlist only
# Project root doesn'
t
exist, remove from projectlist only
echo
"Warning: Project root not found"
echo
"
**
Warning: Project root not found"
else
else
if [ ! -w
"
$proot
"
]; then
if [ ! -w
"
$proot
"
]; then
...
@@ -757,15 +776,15 @@ pwrc_delete_func()
...
@@ -757,15 +776,15 @@ pwrc_delete_func()
# Delete project directory tree
# Delete project directory tree
if rm -R
$proot
if rm -R
$proot
then
then
echo
"
Project root
deleted"
echo
"
-- Project tree
deleted"
else
else
if rmdir
$proot
if rmdir
$proot
then
then
echo
"Project root deleted"
echo
"
--
Project root deleted"
else
else
echo
"Unable to delete project root"
echo
"
**
Unable to delete project root"
pwrc_status=
$pwrc__rootdelete
pwrc_status=
$pwrc__rootdelete
return
return
fi
fi
fi
fi
...
@@ -773,11 +792,12 @@ pwrc_delete_func()
...
@@ -773,11 +792,12 @@ pwrc_delete_func()
pwrc_prlist_delete
$2
pwrc_prlist_delete
$2
if [
$pwrc_status
-eq
$pwrc__success
]; then
if [
$pwrc_status
-eq
$pwrc__success
]; then
echo
"Project
$2
removed from projectlist"
echo
"
--
Project
$2
removed from projectlist"
pwrc_prlist_write
#
pwrc_prlist_write
else
else
echo
"Something went wrong..."
echo
"
**
Something went wrong..."
fi
fi
return
return
fi
fi
...
@@ -806,9 +826,9 @@ pwrc_delete_func()
...
@@ -806,9 +826,9 @@ pwrc_delete_func()
pwrc_prlist_base_delete
$2
pwrc_prlist_base_delete
$2
if [
$pwrc_status
-eq
$pwrc__success
]; then
if [
$pwrc_status
-eq
$pwrc__success
]; then
echo
"Base
$2
removed from projectlist"
echo
"Base
$2
removed from projectlist"
pwrc_prlist_write
#
pwrc_prlist_write
else
else
echo
"Something went wrong..."
echo
"
**
Something went wrong..."
fi
fi
return
return
fi
fi
...
@@ -1210,6 +1230,57 @@ pwrc_modify_func()
...
@@ -1210,6 +1230,57 @@ pwrc_modify_func()
return
return
fi
fi
if
[
$modify_name
-eq
1
]
;
then
# Rename mysql databases
pwrc_prlist_read
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
return
fi
pwrc_prlist_get_index
$pname
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
echo
"** No such project '
$pname
'"
return
fi
proot
=
${
root_array
[
$pwrc_current_index
]
}
pwrc_dblist_read
$proot
i
=
0
while
[
"
${
dbms_array
[
$i
]
}
"
!=
""
]
;
do
dbname
=
"pwrp_"
$pname
"__"
${
dbms_array
[
$i
]
}
new_dbname
=
"pwrp_"
$new_pname
"__"
${
dbms_array
[
$i
]
}
if
mysqladmin
-h
${
dbms_server_array
[
$i
]
}
-upwrp
create
$new_dbname
then
if
mysqldump
-h
${
dbms_server_array
[
$i
]
}
-upwrp
$dbname
| mysql
-h
${
dbms_server_array
[
$i
]
}
-upwrp
-D
$new_dbname
then
echo
"-- Mysql database copied from
$dbname
to
$new_dbname
"
if
mysqladmin
-h
${
dbms_server_array
[
$i
]
}
-upwrp
drop
$dbname
-f
then
echo
"-- Mysql database
$dbname
deleted"
else
echo
"** Unable to delete mysql database from
$dbname
"
fi
else
echo
"** Unable to copy mysql database from
$dbname
to
$new_dbname
"
pwrc_status
=
$pwrc__mysqldbcopy
return
fi
else
echo
"** Unable to create mysql database
$new_dbname
"
pwrc_status
=
$pwrc__mysqldbcopy
return
fi
i
=
$i
+1
done
name_array[
$pwrc_current_index
]=
$new_pname
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
return
fi
fi
if
[
$modify_root
-eq
1
]
;
then
if
[
$modify_root
-eq
1
]
;
then
# Check that new root doesn't exist
# Check that new root doesn't exist
if
[
-e
"
$root
"
]
;
then
if
[
-e
"
$root
"
]
;
then
...
@@ -1249,69 +1320,12 @@ pwrc_modify_func()
...
@@ -1249,69 +1320,12 @@ pwrc_modify_func()
fi
fi
if
[
$something_modified
-eq
1
]
;
then
if
[
$something_modified
-eq
1
]
;
then
pwrc_prlist_write
#
pwrc_prlist_write
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
return
return
fi
fi
fi
fi
if
[
$modify_name
-eq
1
]
;
then
# This can only be done on mysql server
if
[
!
-z
"
$pwrp_mysql_server
"
]
;
then
node
=
"
`
eval uname
-n
`
"
if
[
$node
!=
$pwrp_mysql_server
]
;
then
echo
"Error: current host is not mysql server (
$pwrp_mysql_server
)"
pwrc_status
=
$pwrc__notmysqlsrv
return
fi
fi
# Get location for mysql database
datadir
=
`
eval
mysqladmin
$mysql_socket
variables|
grep
datadir |
awk
'{ print $4 }'
`
datadir
=
${
datadir
%/
}
if
[
-z
$datadir
]
;
then
echo
"Error: Can't get database directory from mysql"
pwrc_status
=
$pwrc__datadir
return
fi
# Get databases in from-project
pwrc_dblist_read
$pname
${
root_array
[
$pwrc_current_index
]
}
pwrc_status
=
$pwrc__success
# Check that the databases can be found and that the new doesn't exist
i
=
0
while
[
"
${
db_array
[
$i
]
}
"
!=
""
]
;
do
if
[
!
-e
$datadir
/
${
db_array
[
$i
]
}
]
;
then
echo
"Error: Can't find database
${
db_array
[
$i
]
}
"
pwrc_status
=
$pwrc__nodb
return
fi
i
=
$i
+1
done
# Rename databases
i
=
0
while
[
"
${
db_array
[
$i
]
}
"
!=
""
]
;
do
dbname
=
$new_pname
${
db_array
[
$i
]#
$pname
}
if
wb_cp
-rename
$datadir
/
${
db_array
[
$i
]
}
$datadir
/
$dbname
then
echo
"Database
$datadir
/
${
db_array
[
$i
]
}
->
$datadir
/
$dbname
"
else
echo
"Error copying mysql database '
$datadir
/
${
db_array
[
$i
]
}
'"
pwrc_status
=
$pwrc__mysqldbrena
fi
i
=
$i
+1
done
name_array[
$pwrc_current_index
]=
$new_pname
pwrc_prlist_write
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
return
fi
fi
pwrc_status
=
$pwrc__success
pwrc_status
=
$pwrc__success
else
else
echo
"Unknown command"
echo
"Unknown command"
...
@@ -1421,22 +1435,45 @@ pwrc_copy_func()
...
@@ -1421,22 +1435,45 @@ pwrc_copy_func()
fi
fi
# Copy directory tree
# Copy directory tree
echo
"-- Copying project tree..."
if
cp
-R
$from_proot
$to_proot
if
cp
-R
$from_proot
$to_proot
then
then
echo
"
Project directory
tree copied"
echo
"
-- Project
tree copied"
else
else
echo
"Unable to copy directory tree"
echo
"
**
Unable to copy directory tree"
pwrc_status
=
$pwrc__copy
pwrc_status
=
$pwrc__copy
return
return
fi
fi
# Add new project into project list
# Add new project into project list
pwrc_prlist_add dummy
$to_pname
${
base_array
[pwrc_current_index]
}
$to_proot
$to_phier
${
desc_array
[pwrc_current_index]
}
"(Copy of
$from_pname
)"
pwrc_prlist_add dummy
$to_pname
${
base_array
[pwrc_current_index]
}
$to_proot
$to_phier
${
desc_array
[pwrc_current_index]
}
"(Copy of
$from_pname
)"
pwrc_prlist_write
#
pwrc_prlist_write
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
if
[
$pwrc_status
-ne
$pwrc__success
]
;
then
return
return
fi
fi
# Copy mysql databases
pwrc_dblist_read
$from_proot
i
=
0
while
[
"
${
dbms_array
[
$i
]
}
"
!=
""
]
;
do
to_dbname
=
"pwrp_"
$to_pname
"__"
${
dbms_array
[
$i
]
}
from_dbname
=
"pwrp_"
$from_pname
"__"
${
dbms_array
[
$i
]
}
if
mysqladmin
-h
${
dbms_server_array
[
$i
]
}
-upwrp
create
$to_dbname
then
if
mysqldump
-h
${
dbms_server_array
[
$i
]
}
-upwrp
$from_dbname
| mysql
-h
${
dbms_server_array
[
$i
]
}
-upwrp
-D
$to_dbname
then
echo
"-- Mysql database copied from
$from_dbname
to
$to_dbname
"
else
echo
"** Unable to copy mysql database from
$from_dbname
to
$to_dbname
"
fi
else
echo
"** Unable to create mysql database
$to_dbname
"
fi
i
=
$i
+1
done
pwrc_status
=
$pwrc__success
pwrc_status
=
$pwrc__success
else
else
echo
"Unknown command"
echo
"Unknown command"
...
...
wb/changelog.txt
View file @
5b2e9615
...
@@ -148,4 +148,6 @@
...
@@ -148,4 +148,6 @@
091104 cs wb Build method for WebGraph objects added.
091104 cs wb Build method for WebGraph objects added.
091208 cs wb PostCreate methods for Channels added to set default number and representation.
091208 cs wb PostCreate methods for Channels added to set default number and representation.
091208 cs wb Default name for created objects in wtt fetched from name of previous sibling.
091208 cs wb Default name for created objects in wtt fetched from name of previous sibling.
091209 cs wb ConnectAttribute method added to SevHist.
091209 cs wb ConnectAttribute method added to SevHist.
\ No newline at end of file
091218 cs wb Bugfix for next cix and next oix in ced.
091218 cs wb Bugfix in wb_vrepdb:child().
\ No newline at end of file
wb/lib/wb/src/wb_pvd_pl.cpp
View file @
5b2e9615
...
@@ -107,6 +107,7 @@ void wb_pvd_pl::writeAttribute( co_procom *pcom, pwr_tOix oix, unsigned int offs
...
@@ -107,6 +107,7 @@ void wb_pvd_pl::writeAttribute( co_procom *pcom, pwr_tOix oix, unsigned int offs
strncpy
(
(
char
*
)((
unsigned
long
)
m_list
[
oix
].
body
+
(
unsigned
long
)
path_offset
),
path
,
strncpy
(
(
char
*
)((
unsigned
long
)
m_list
[
oix
].
body
+
(
unsigned
long
)
path_offset
),
path
,
sizeof
(
body
.
Path
));
sizeof
(
body
.
Path
));
}
}
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
}
}
else
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
))
{
else
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
))
{
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
...
@@ -363,7 +364,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
...
@@ -363,7 +364,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
&&
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
&&
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
))
{
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
))
{
printf
(
"Project deleted %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh delete project %s noconfirm"
,
sprintf
(
cmd
,
"pwrp_env.sh delete project %s noconfirm"
,
body
->
Project
);
body
->
Project
);
...
@@ -378,7 +378,7 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
...
@@ -378,7 +378,7 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
else
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
&&
else
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
&&
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
))
{
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
))
{
if
(
strcmp
(
body
->
CopyFrom
,
""
)
==
0
)
{
if
(
strcmp
(
body
->
CopyFrom
,
""
)
==
0
)
{
printf
(
"Project created %s
\n
"
,
longname
(
i
));
printf
(
"
--
Project created %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"wb_pvd_pl.sh create project %s %s %s
\"
%s
\"
\"
%s
\"
"
,
sprintf
(
cmd
,
"wb_pvd_pl.sh create project %s %s %s
\"
%s
\"
\"
%s
\"
"
,
body
->
Project
,
body
->
Version
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
),
body
->
Project
,
body
->
Version
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
),
...
@@ -394,7 +394,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
...
@@ -394,7 +394,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
else
{
else
{
sprintf
(
cmd
,
"pwrp_env.sh copy project %s %s %s %s noconfirm"
,
sprintf
(
cmd
,
"pwrp_env.sh copy project %s %s %s %s noconfirm"
,
body
->
CopyFrom
,
body
->
Project
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
));
body
->
CopyFrom
,
body
->
Project
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
));
printf
(
"%s
\n
"
,
cmd
);
csts
=
system
(
cmd
);
csts
=
system
(
cmd
);
if
(
(
csts
>>=
8
)
!=
0
)
{
if
(
(
csts
>>=
8
)
!=
0
)
{
sprintf
(
msg
,
"%s, in object %s"
,
pwrp_status_to_string
(
csts
),
sprintf
(
msg
,
"%s, in object %s"
,
pwrp_status_to_string
(
csts
),
...
@@ -409,11 +408,25 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
...
@@ -409,11 +408,25 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
pwr_sClass_ProjectReg
*
origbody
=
(
pwr_sClass_ProjectReg
*
)
m_list
[
i
].
userdata
;
pwr_sClass_ProjectReg
*
origbody
=
(
pwr_sClass_ProjectReg
*
)
m_list
[
i
].
userdata
;
if
(
m_list
[
i
].
flags
&
pl_mFlags_ProjectModified
)
{
if
(
m_list
[
i
].
flags
&
pl_mFlags_ProjectModified
)
{
printf
(
"Project modified %s
\n
"
,
longname
(
i
));
printf
(
"-- Project modified %s
\n
"
,
longname
(
i
));
}
if
(
m_list
[
i
].
flags
&
pl_mFlags_ProjectModified
&&
strcmp
(
body
->
Project
,
origbody
->
Project
)
!=
0
)
{
printf
(
"-- Project Name modified %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh modify project %s -n %s"
,
origbody
->
Project
,
body
->
Project
);
csts
=
system
(
cmd
);
if
(
(
csts
>>=
8
)
!=
0
)
{
sprintf
(
msg
,
"%s, in object %s"
,
pwrp_status_to_string
(
csts
),
longname
(
m_list
[
i
].
oix
));
MsgWindow
::
message
(
'E'
,
msg
,
msgw_ePop_Yes
);
return
;
}
}
}
if
(
m_list
[
i
].
flags
&
pl_mFlags_PathModified
&&
if
(
m_list
[
i
].
flags
&
pl_mFlags_PathModified
&&
strcmp
(
body
->
Path
,
origbody
->
Path
)
!=
0
)
{
strcmp
(
body
->
Path
,
origbody
->
Path
)
!=
0
)
{
printf
(
"Path modified %s
\n
"
,
longname
(
i
));
printf
(
"
-- Project
Path modified %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh modify project %s -r %s"
,
origbody
->
Project
,
sprintf
(
cmd
,
"pwrp_env.sh modify project %s -r %s"
,
origbody
->
Project
,
body
->
Path
);
body
->
Path
);
...
...
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