- About propcopy.pl
- Have an empty repository ready
- Check out the empty repository
- Copy the nameless wiki to the repository
- Commit the changes
- Get the propcopy.pl script and read its documentation
- Create the script that will copy the properties
- Run the script that copies the properties
- Go back and commit the changes
- Delete the files we created.
- Contributing to the Nameless Wiki
About propcopy.pl
From the svnwiki page:
The Nameless Wiki is part of the svnwiki distribution (in the the-nameless-wiki directory). Copy all the files on it to your wiki's repository and set the properties with the same values. Help simplifying this (for example, a script to do it) would be appreciated.
There's a dirty script written by Nelson Castillo that is part of the svnwiki distribution. (Check scripts/propcopy.pl).
It's not a general script for copying properties, it just works for the nameless wiki. You've been warned.
It can be used to copy the properties of the nameless wiki to your own repository.
I just installed svnwiki at home, so I will explain it as I do it.
Have an empty repository ready
You need an empty repository. You might get some help creating one from our Apache2 SSL and Subversion in Debian page.
I used the document to create a repository and configured one to be accessed via http (no https).
Check out the empty repository
$ svn checkout --username svnwiki http://localhost/svn/wiki/ Authentication realm: <http://localhost:80> My Subversion Repository Password for 'svnwiki': Checked out revision 0. n@gaira:~/src$
Copy the nameless wiki to the repository
Note that the path of the nameless wiki should be different for you. Maybe you just checked out the nameless wiki. I have the whole repository at home. Your repository name will make things different, too.
$ cp src/src/svnwiki/trunk/the-nameless-wiki/* wiki/ -R
Commit the changes
You have to commit the changes to the repository.
$ cd wiki $ svn add * A default A gxbook-css A help A menu svn: warning: 'styles' is already under version control A svnwiki A svnwiki-css A wiki-syntax A xsvnwiki-linktypes $ svn commit -m "imported nameless wiki" Adding default Adding gxbook-css Adding help Adding menu Adding svnwiki Adding svnwiki-css Adding wiki-syntax Adding xsvnwiki-linktypes Transmitting file data ........ Committed revision 2. $ cd ..
Get the propcopy.pl script and read its documentation
$ cp src/svnwiki/trunk/scripts/propcopy.pl /tmp/ $ chmod +x /tmp/propcopy.pl
If you want to read the embedded documentation:
$ cat /tmp/propcopy.pl | pod2text | less
Create the script that will copy the properties
$ pushd src/svnwiki/trunk/the-nameless-wiki/ ~/src/src/svnwiki/trunk/the-nameless-wiki ~/src $ pwd /home/n/src/src/svnwiki/trunk/the-nameless-wiki
It prints the current directory. Should be different for you.
$ /tmp/propcopy.pl /home/n/src/wiki > /tmp/copy.sh
Run the script that copies the properties
You might want to read /tmp/copy.ssh.
$ chmod +x /tmp/copy.sh $ /tmp/copy.sh
You will see a lot of output.
property 'svnwiki:toc' set on '/home/n/src/wiki' property 'svnwiki:css' set on '/home/n/src/wiki'
Go back and commit the changes
$ popd ~/src $ cd wiki $ svn commit -m "updated properties" Sending gxbook-css Sending svnwiki-css Committed revision 3.
Delete the files we created.
$ rm /tmp/propcopy.pl /tmp/copy.sh
If you configured svnwiki correctly, it should show you a pretty nameless wiki.
Contributing to the Nameless Wiki
Feel free to improve nameless wiki. You don't need passwords to commit to the nameless wiki.
Locating the Nameless Wiki directory
$ cd src/src/svnwiki/trunk/the-nameless-wiki/
Do some pretty changes. Try them in your wiki and then commit.
Please check the nameless wiki to see if your changes worked as expected once you commit something.
Last update: 2005-05-07 (Rev 2330)