Skip to content
Browse files

Move repos into their own file

  • Loading branch information...
1 parent d3ea2fa commit 7397daa3543a5479c8fbb4d54daeb9f1ed30e2dd @richo richo committed
Showing with 23 additions and 12 deletions.
  1. +23 −12 pull_ext.sh
View
35 pull_ext.sh
@@ -1,6 +1,22 @@
#!/bin/sh
CWD=`pwd`
-GITPATH="$(dirname "$0")"/ext
+SCRPATH=`pwd`
+
+if [ -e .svn ]; then
+ svn update
+ # TODO - on update, exec $0 $@
+fi
+
+. $SCRPATH/.pull_data
+if [ -z "$data" ]; then
+ echo "Data file does not define \$data"
+ exit
+fi
+if [ -z "$GITPATH" ]; then
+ echo "Data file does not define \$GITPATH"
+ exit
+fi
+
pull_or_clone()
while [ $# -ge 2 ]; do
@@ -41,17 +57,12 @@ pull_or_clone()
./__update.sh
fi
fi
+ if [ -e .pull_data ]; then
+ echo "Pulling externals in: $(pwd)"
+ pull_ext
+ fi
+
cd "$CWD"
done
-
- # Move the referenced apps into an include file so that diff_ and pull_ can both
- # Access them
-pull_or_clone \
- psych0tik git@github.com:richoH/psych0tik.git git\
- irssi-scripts git@github.com:shabble/irssi-scripts.git git\
- vimprobable git@github.com:richoH/vimprobable.git git\
- tabbed http://hg.suckless.org/tabbed hg\
- openbox natalya.psych0tik.net:git/openbox.git git\
- hbh richo@hellboundhackers.org/var/svn svn\
- fugitive git://github.com/tpope/vim-fugitive.git git
+pull_or_clone $data

0 comments on commit 7397daa

Please sign in to comment.
Something went wrong with that request. Please try again.