Git repositories for web pages belonging to a sourceware.org-side project may be created with a handy dandy shell script:
- Run as
root
:/sourceware/infra/bin/mkgithtdocs FOO
.
This creates bare git repos accessible as git://sourceware.org/git/FOO-htdocs.git
and other related URLs.
This also initializes the needed gitweb
files, so the repo shows up at https://sourceware.org/git/, and
makes https://sourceware.org/project/ live.
To convert an old-school CVS htdocs:
- rename the old htdocs directory under /sourceware/www/sourceware/htdocs/
- run the above script to create new git repo
- run (cd /cvs/PROJECT-htdocs/.../htdocs; find . -name '*,v' | cvs-fast-export > EXPORT.txt)
- into a temporary clone of the new git repo, run git fast-import < EXPORT.txt
- # git checkout (to fetch the master branch g-f-i created); git push
- check that https://sourceware.org/$PROJECT is updated via the post-update hook
- fix ownership/permissions of /sourceware/www/sourceware/htdocs/$PROJECT dirs especially
- clean up temporary clone and EXPORT.txt
- remove the /cvs/PROJECT... symlink
- remove the old htdocs backup directory after verification