
Originally Posted by
mc12345678
No I didn't rebuilt the site from scratch keeping the database as stated, I followed another path :
- Downloaded ZC 1.5.0
- Downloaded ZC 1.5.4
- Downloaded an archive of my site
Code:
$tar -zcvf publ_htm-Date.tgz public_html
- Compared ZC 1.5.0 with my site
Code:
$diff -brief -r zc150dir/ my site/ > MySiteModFiles.txt
- Compared ZC 1.5.0 with ZC 1.5.4
Code:
$diff -brief -r zc150dir/ zc154dir/ > ZC154NewFiles.txt
- Compared my modifications list with ZC 1.5.4 new files list to see where they overlap
For that I used an awk script :
Code:
# output lines in file1 that are not in file2
BEGIN { FS="" } # preserve whitespace
(NR==FNR) { ll1[FNR]=$0; nl1=FNR; } # file1, index by lineno
(NR!=FNR) { ss2[$0]++; } # file2, index by string
END {
for (ll=1; ll<=nl1; ll++) if (!(ll1[ll] in ss2)) print ll1[ll]
}
and then
Code:
$awk -f MyCompareScript.awk MySiteModFiles.txt ZC154NewFiles.txt
I ended with 33 files.
- Made a "ZC154Patch" dir with only the files in ZC154NewFiles.txt
- Kept apart in another dir the 33 files which are overlapping.
- Built a test dir on the hosting, with a test database, both exact copies of the live site.
- Ran database upgrade from zc_install
- Uploaded the patch directory files.
- Reviewed and merged each of the 33 files against ZC 154.
- Uploaded the 33 files
Long path, I know.... But I thought it would be shorter than rebuilding like you say as I've got about 25 modules.