Copy hotlist from the pre-3.0 to the 3.0 location during install, if it exists and there isn't one present in the new location already.

This commit is contained in:
Chris Young 2013-01-20 11:38:26 +00:00
parent 9995ef583f
commit e547026dfa

18
amiga/dist/Install vendored
View File

@ -382,6 +382,10 @@
(set #user-options (tackon #user-dir "Choices"))
(set #options-exist (exists #user-options))
(set #searchengines-exist (exists (tackon @default-dest "Resources/SearchEngines")))
(set #user-hotlist (tackon #user-dir "Hotlist"))
(set #hotlist-exist (exists #user-hotlist))
(set #old-hotlist (tackon @default-dest "Resources/Hotlist"))
(set #old-hotlist-exist (exists #old-hotlist))
(set #aiss-theme "")
(if (= #options-exist 0)
@ -411,6 +415,20 @@
)
)
(if (= #hotlist-exist 0)
(if (= #old-hotlist-exist 1)
(
(copyfiles
(prompt "Migrating NetSurf 2.x Hotlist")
(help @copyfiles-help)
(source #old-hotlist)
(dest #user-dir)
(optional "askuser" "force" "oknodelete")
)
)
)
)
(complete 18)
(if (>= osver 53)