Giter Club home page Giter Club logo

sync's Introduction

Sync is util which will help you to keep your forks up to date!

all you need is: /etc/conf.d/repolist.conf or ../repolist.conf on windows

( works on windows since 1.8 version )

[Repos]
user:
  /home/nen/contrib/haskell/hackport -t git
  /home/nen/contrib/haskell/hackport/cabal -p /home/nen/contrib/haskell/hackport

  /home/nen/contrib/mono/FAKE -t git -b develop
sudo:
  /home/gentoo-haskell

(git and master branch are defaults)

and run forks-sync. [not that it can't setup repos for you yet]

def syncrepos(repos): 
    for r in repos.split("\n"): 
        if r: SyncStarter(r)

def sync(oz): 
    if oz == 'nt': 
        config.readfp(open('../repolist.conf'))
        syncrepos( config.get('Repos','user') )
    else: 
        config.readfp(open('/etc/conf.d/repolist.conf'))
        if os.geteuid() == 0:
            print("warning: running from root, only root repositories is syncing")
        else:
            user = config.get('Repos','user')
            syncrepos(user)
            sudo = True
        root = config.get('Repos','sudo')
        syncrepos(root)

it will be look alike that:

=====================================================================================
                     sync: Global repositories synchronizer v.1.4  
=====================================================================================
------ Repository:  /home/nen/contrib/haskell/hackport ------
New: []
Modified: []
No rebase in progress?
From github.com:Heather/hackport
 * branch            master     -> FETCH_HEAD
From git://github.com/gentoo-haskell/hackport
 * branch            master     -> FETCH_HEAD
From git://github.com/gentoo-haskell/hackport
 * branch            master     -> FETCH_HEAD
Everything up-to-date
 -->  /home/nen/contrib/haskell/hackport : successful synchronized :)
______________________________________________________________________
------ Repository:  /home/nen/contrib/haskell/hackport/cabal ------
New: []
Modified: []
No rebase in progress?
From github.com:Heather/cabal
 * branch            master     -> FETCH_HEAD
From git://github.com/haskell/cabal
 * branch            master     -> FETCH_HEAD
From git://github.com/haskell/cabal
 * branch            master     -> FETCH_HEAD
Everything up-to-date
 -->  /home/nen/contrib/haskell/hackport/cabal : successful synchronized :)
>>>>>>>>> Parent update:  /home/nen/contrib/haskell/hackport
New: []
Modified: []
From github.com:Heather/hackport
 * branch            master     -> FETCH_HEAD
Everything up-to-date
 -->  /home/nen/contrib/haskell/hackport : successful synchronized :)
______________________________________________________________________
------ Repository:  /home/nen/contrib/mono/FAKE ------
New: []
Modified: []
No rebase in progress?
From github.com:Heather/FAKE
 * branch            develop    -> FETCH_HEAD
From git://github.com/fsharp/FAKE
 * branch            develop    -> FETCH_HEAD
From git://github.com/fsharp/FAKE
 * branch            develop    -> FETCH_HEAD
Everything up-to-date
 -->  /home/nen/contrib/mono/FAKE : successful synchronized :)
______________________________________________________________________

Installation

in gentoo you can install it from my overlay

emerge sync

sync's People

Contributors

cnd avatar silky avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.