Skip to content

Commit

Permalink
Added shell script to change package's name in some config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Nov 24, 2009
1 parent dd7106d commit ddd1208
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions set_name.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

PROJECT=$1
LOWER_PROJECT=${PROJECT/-/_}

find . \
\( -not \( -path './parts/*' -or -path './bin/*' -or -path './develop-eggs/*' \) \) -and \
\( -name '*.py' -or -name '*.rst' -or -name Makefile -or -name *.cfg -or -name LICENSE -or -name .gitignore \) \
-print0 | \
xargs -0 sed -i \
-e "s/django-app-template/${PROJECT}/g" \
-e "s/django_app_template/${LOWER_PROJECT}/g"

0 comments on commit ddd1208

Please sign in to comment.