]> gitweb.fluxo.info Git - scripts.git/commitdiff
Removing migration script
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Sep 2014 19:48:09 +0000 (16:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Sep 2014 19:48:09 +0000 (16:48 -0300)
migrate-scripts [deleted file]

diff --git a/migrate-scripts b/migrate-scripts
deleted file mode 100644 (file)
index d368ca2..0000000
+++ /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