summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake-prserv-tool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bitbake-prserv-tool')
-rwxr-xr-xscripts/bitbake-prserv-tool40
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool
index 80028342b1..0559c4c38a 100755
--- a/scripts/bitbake-prserv-tool
+++ b/scripts/bitbake-prserv-tool
@@ -55,43 +55,6 @@ do_import ()
55 return $ret 55 return $ret
56} 56}
57 57
58do_migrate_localcount ()
59{
60 df=`bitbake -R conf/migrate_localcount.conf -e | \
61 grep ^LOCALCOUNT_DUMPFILE= | cut -f2 -d\"`
62 if [ "x${df}" == "x" ];
63 then
64 echo "LOCALCOUNT_DUMPFILE is not defined!"
65 return 1
66 fi
67
68 rm -f $df
69 clean_cache
70 echo "Exporting LOCALCOUNT to AUTOINCs..."
71 bitbake -R conf/migrate_localcount.conf -p
72 [ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1
73
74 if [ -e $df ];
75 then
76 echo "Exporting to file $df succeeded!"
77 else
78 echo "Exporting to file $df failed!"
79 exit 1
80 fi
81
82 echo "Importing generated AUTOINC entries..."
83 [ -e $df ] && do_import $df
84
85 if [ ! $? -eq 0 ]
86 then
87 echo "Migration from LOCALCOUNT to AUTOINCs failed!"
88 return 1
89 fi
90
91 echo "Migration from LOCALCOUNT to AUTOINCs succeeded!"
92 return 0
93}
94
95[ $# -eq 0 ] && help && exit 1 58[ $# -eq 0 ] && help && exit 1
96 59
97case $2 in 60case $2 in
@@ -110,9 +73,6 @@ export)
110import) 73import)
111 do_import $2 74 do_import $2
112 ;; 75 ;;
113migrate_localcount)
114 do_migrate_localcount
115 ;;
116*) 76*)
117 help 77 help
118 exit 1 78 exit 1