Skip to content

Instantly share code, notes, and snippets.

@clairvy
Created May 31, 2010 11:55
Show Gist options
  • Select an option

  • Save clairvy/419760 to your computer and use it in GitHub Desktop.

Select an option

Save clairvy/419760 to your computer and use it in GitHub Desktop.
#!/bin/sh
base=`basename $PWD`
Base=`echo $base | cut -c 1 | tr '[a-z]' '[A-Z]' | awk '{printf $1}'; echo $base | sed -e 's/.//'`
android create project --target 10 --path . --activity ${Base} --package cla.irvy.${base}
cat <<EOL > .gitignore
bin
gen
EOL
rmdir bin
git init
git add *
git add .gitignore
git ci -m "initial version"
git co -b $base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment