Commit af0416b9 authored by Claes Sjofors's avatar Claes Sjofors

Backup restore script modified for attribute objects

parent 2458cc00
...@@ -51,6 +51,7 @@ main() ...@@ -51,6 +51,7 @@ main()
int first; int first;
int len; int len;
string start; string start;
string name;
string objname; string objname;
string attrname; string attrname;
string db_attrname; string db_attrname;
...@@ -61,6 +62,7 @@ main() ...@@ -61,6 +62,7 @@ main()
int export_alias; int export_alias;
string alias_filename; string alias_filename;
verify(0);
printf("\n"); printf("\n");
if (p1 == "" || p2 == "") if (p1 == "" || p2 == "")
...@@ -97,17 +99,20 @@ main() ...@@ -97,17 +99,20 @@ main()
start = extract(1, 2, str); start = extract(1, 2, str);
i = strstr(start, "/"); i = strstr(start, "/");
if (!i) if (!i)
i = strstr(str, ".");
j = strstr(str, " "); j = strstr(str, " ");
first = 1; first = 1;
len = i-1; len = j - 1;
objname = extract(first, len, str); name = extract( first, len, str);
first = i+1; first = j + 1;
len = j-i-1;
attrname = extract(first, len, str);
first = j+1;
len = strlen(str) - j; len = strlen(str) - j;
value = extract(first, len, str); value = extract(first, len, str);
i = strrchr(name, ".");
first = 1;
len = i - 1;
objname = extract(first, len, name);
first = i + 1;
len = strlen(name) - i;
attrname = extract(first, len, name);
db_attrname = attrname; db_attrname = attrname;
if (attrname == "ActualValue") if (attrname == "ActualValue")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment