From e547026dfa78c3a50818dabfc3be98af31c7735e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 20 Jan 2013 11:38:26 +0000 Subject: 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. --- amiga/dist/Install | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'amiga/dist/Install') diff --git a/amiga/dist/Install b/amiga/dist/Install index e32096498..01914294b 100755 --- a/amiga/dist/Install +++ b/amiga/dist/Install @@ -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) -- cgit v1.2.3