Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script 009 misses certain directories that should be merged #2

Open
jrwiebe opened this issue Dec 3, 2013 · 0 comments
Open

Script 009 misses certain directories that should be merged #2

jrwiebe opened this issue Dec 3, 2013 · 0 comments

Comments

@jrwiebe
Copy link

jrwiebe commented Dec 3, 2013

It appears that some directories that should be merged, because the case-insensitive renderings of their names are the same, are missed by the remove-double-dirs.pl script called by 009-case-insensitivity-dirs.sh. One example: when the script concludes, directories "Z3roadstar_1999" and "z3roadstar_1999" remain in $GEO_WORK/geocities/www.geocities.com.

This happens where upper- and lower-case versions of a directory name are non-sequential in $GEO_LOGS/doubles-dir-sorted.txt, which occurs when one directory begins with uppercase, and another with lower. This "double" (or triple, etc.) then isn't caught by remove-double-dirs.pl.

Proposed solution: In $GEO_SCRIPTS/sql/create/find-doubles.sql, change last line to "ORDER BY lowname DESC;" (instead of BY name).

Result: doubles-dir-sorted.txt appears like this, with first-letter-lower and first-letter-upper variants interleaved. E.g.:

/www.geocities.com/~yeata
/www.geocities.com/~Yeata
/www.geocities.com/~Suthernangel
/www.geocities.com/~suthernangel
/www.geocities.com/~minico
/www.geocities.com/~Minico
/www.geocities.com/~mimesq
/www.geocities.com/~MIMESQ
/www.geocities.com/~mcbroom/wish
/www.geocities.com/~McBroom/wish
/www.geocities.com/~McBroom/snows
/www.geocities.com/~mcbroom/snows
/www.geocities.com/~McBroom/sand
/www.geocities.com/~mcbroom/sand
/www.geocities.com/~mcbroom/rositas
/www.geocities.com/~McBroom/rositas
/www.geocities.com/~McBroom/pond
/www.geocities.com/~mcbroom/pond
/www.geocities.com/~McBroom/pictools
/www.geocities.com/~mcbroom/pictools
/www.geocities.com/~mcbroom/images
/www.geocities.com/~McBroom/images
/www.geocities.com/~McBroom/fontinini
/www.geocities.com/~mcbroom/fontinini
/www.geocities.com/~mcbroom/dvs
/www.geocities.com/~McBroom/dvs
/www.geocities.com/~McBroom/dvp
/www.geocities.com/~mcbroom/dvp
/www.geocities.com/~mcbroom/clubpics
/www.geocities.com/~McBroom/clubpics
/www.geocities.com/~McBroom/alps
/www.geocities.com/~mcbroom/alps
/www.geocities.com/~McBroom
/www.geocities.com/~mcbroom
...

NixMcRetro pushed a commit to NixMcRetro/GeoCities that referenced this issue Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant