diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-20 11:38:26 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-20 11:38:26 +0000 |
commit | e547026dfa78c3a50818dabfc3be98af31c7735e (patch) | |
tree | 91ac4873828833bd11671751f21f3b3cc9c6cbaa /amiga | |
parent | 9995ef583f0820013e4e870f572b794bd46b4b13 (diff) | |
download | netsurf-e547026dfa78c3a50818dabfc3be98af31c7735e.tar.gz netsurf-e547026dfa78c3a50818dabfc3be98af31c7735e.tar.bz2 |
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.
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/dist/Install | 18 |
1 files changed, 18 insertions, 0 deletions
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) |