Skip to content
Snippets Groups Projects

Extract current of every package

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by davean
    snippetfile1.txt 288 B
    HASKELL_PACKAGES=/home/davean/projects/skete-haskell/haskell-packages/.git
    TARGET_DIR=/tmp/test/
    
    for i in $(git --git-dir=$HASKELL_PACKAGES branch -r --no-color  --no-column | grep -v "@hackage")
    do
        git --git-dir=$HASKELL_PACKAGES archive --format=tar $i | tar x -C $TARGET_DIR
    done
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment