diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:48:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:48:09 -0300 |
commit | 9f4a9afc7ad5905cdd09a680c7527ccae9c30808 (patch) | |
tree | 8b6deb7be157dcc1e9ece3e0e1b113e3a1200651 | |
parent | b4e2708c6f8cc2191c581aef404803478e65e678 (diff) | |
download | scripts-9f4a9afc7ad5905cdd09a680c7527ccae9c30808.tar.gz scripts-9f4a9afc7ad5905cdd09a680c7527ccae9c30808.tar.bz2 |
Removing migration script
-rw-r--r-- | migrate-scripts | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/migrate-scripts b/migrate-scripts deleted file mode 100644 index d368ca2..0000000 --- a/migrate-scripts +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# -# Mas repo creator! -# -# This script was used to migrate lots of scripts to specific repositories. - -# New repositories -REPOS="bash-prompt downloaders git-subtree playlister sedscripts ssl-wrapper start-streaming termplex timelog unisyncer utils-battery utils-calendar utils-cdrecord utils-chroot utils-git utils-gpg utils-image utils-mail utils-spreadsheet utils-ssh utils-tor utils-x11 vbox" - -# First stage -for repo in $REPOS; do - cd ~/apps/$repo - touch {README,TODO}.md - git init - git add . - git config user.name "USER" - git config user.email "MAIL" - git remote add DEST1 gitolite@DEST1:$repo.git - git remote add DEST2 gitolite@DEST2:$repo.git - git commit -m "Initial import" - git push DEST1 master - git push DEST2 master - - # Remote all - echo '[remote "all"]' >> .git/config - echo ' url = gitolite@DEST1:$repo.git' >> .git/config - echo ' url = gitolite@DEST2:$repo.git' >> .git/config - - cd ~/apps - mkdir -p tmp - mv $repo tmp/ - git submodule add git://git.sarava.org/$repo $repo - - rm -rf $repo - mv tmp/$repo . - rm -rf .git/modules/$repo -done - -# Teardown -rmdir tmp |