Skip to content
cweiske edited this page Aug 22, 2011 · 2 revisions

Creating a PEAR2 package from a PEAR(1) package is easy and helpful for many people.

Use the script that does everything: https://github.com/pear/pear-svn-git


Alternatively, you can do it all by yourself:

First, create a list of contributors to the PEAR package:

svn co https://svn.php.net/repository/pear/packages/PACKAGE_NAME/
cd PACKAGE_NAME/
svn log --quiet | grep '^r' | awk '{print $3}' | sort | uniq > committers.txt

You will need to complete the committers.txt next, which means hunting down their names and current email addresses by using master, github and google.

Then, run the following command to create a git repo from svn.php.net:

mkdir github/
cd github/
git svn clone -s https://svn.php.net/repository/pear/packages/PACKAGE_NAME/ \
--authors-file=./PATH/TO/committers.txt

Then finish off with:

cd PACKAGE_NAME/
git add remote ...
git push -u origin master
Clone this wiki locally