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

Mirror other PDL repos #57

Closed
zmughal opened this issue Mar 3, 2015 · 4 comments
Closed

Mirror other PDL repos #57

zmughal opened this issue Mar 3, 2015 · 4 comments

Comments

@zmughal
Copy link
Member

zmughal commented Mar 3, 2015

@wchristian, like you did in #6, could we also do the same for

  • PDL-LinearAlgebra,

    git clone git://git.code.sf.net/p/pdl/pdl-linearalgebra

  • PDL-Book,

    git clone git://git.code.sf.net/p/pdl/pdl-book

  • PDL-Graphics-PLplot,

    git clone git://git.code.sf.net/p/pdl/pdl-graphics-plplot

  • PDL-IO-HDF5,

    git clone git://git.code.sf.net/p/pdl/pdl-io-hdf5

  • PDL::FFTW

    git clone git://git.code.sf.net/p/pdl/pdl-fftw

@wchristian
Copy link
Member

Will do in a while.

@wchristian
Copy link
Member

This should work:

git config alias.update-mirror '!git fetch -q origin && git push -q github'

cd pdl_repo_mirrors

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-linearalgebra pdl.git
cd pdl.git
git remote add github git@github.com:PDLPorters/pdl.git
git config remote.github.mirror true
cd ..

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-linearalgebra pdl-linearalgebra.git
cd pdl-linearalgebra.git
git remote add github git@github.com:PDLPorters/pdl-linearalgebra.git
git config remote.github.mirror true
cd ..

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-book pdl-book.git
cd pdl-book.git
git remote add github git@github.com:PDLPorters/pdl-book.git
git config remote.github.mirror true
cd ..

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-graphics-plplot pdl-graphics-plplot.git
cd pdl-graphics-plplot.git
git remote add github git@github.com:PDLPorters/pdl-graphics-plplot.git
git config remote.github.mirror true
cd ..

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-io-hdf5 pdl-io-hdf5.git
cd pdl-io-hdf5.git
git remote add github git@github.com:PDLPorters/pdl-io-hdf5.git
git config remote.github.mirror true
cd ..

git clone --bare --mirror git://git.code.sf.net/p/pdl/pdl-fftw pdl-fftw.git
cd pdl-fftw.git
git remote add github git@github.com:PDLPorters/pdl-fftw.git
git config remote.github.mirror true
cd ..

crontab -e

0-59/5 * * * * cd /root/pdl_repo_mirrors/pdl.git && git update-mirror
1-59/5 * * * * cd /root/pdl_repo_mirrors/pdl-linearalgebra.git && git update-mirror
2-59/5 * * * * cd /root/pdl_repo_mirrors/pdl-book.git && git update-mirror
3-59/5 * * * * cd /root/pdl_repo_mirrors/pdl-graphics-plplot.git && git update-mirror
4-59/5 * * * * cd /root/pdl_repo_mirrors/pdl-io-hdf5.git && git update-mirror
0-59/5 * * * * cd /root/pdl_repo_mirrors/pdl-fftw.git && git update-mirror

@zmughal
Copy link
Member Author

zmughal commented May 24, 2015

Thanks a bunch, @wchristian++!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants