Browse files

adding README

  • Loading branch information...
1 parent 6cccfce commit 6f936ad3045f93169f31225c6cd1a73bf8c6bb04 Thomas Vander Stichele committed Sep 4, 2012
Showing with 16 additions and 9 deletions.
  1. +16 −9 README
@@ -1,12 +1,19 @@
This module implements commands with subtrees of commands.
-Suggested use in your project (if you are using Subversion):
+Suggested use in your project (if you are using git):
-- create myproject/extern directory
-- svn commit myproject/extern
-- svn propset svn:externals "command"
-Alternatively, you can embed only the file with proper svn:externals.
-If you are worried about stability, check out a specific revision by
-putting -r (revision number) in between log and https
+- create myproject/extern directory and package:
+ export PROJECT=myproject
+ mkdir -p $PROJECT/extern
+ touch $PROJECT/extern/
+- add the submodule:
+ git submodule add $PROJECT/extern/python-command
+ pushd
+ cd $PROJECT/extern
+ ln -sf python-command/command command
+ popd
+- test if you can import it:
+ python -c "from $PROJECT.extern.command import command; print command"
+- Commit the result to git
+ git add $PROJECT/extern/command
+ git commit -m "add python command module" .gitmodules $PROJECT/extern/command

0 comments on commit 6f936ad

Please sign in to comment.