instmacros | raw changeset files shortlog |
1.1 --- a/instmacros Wed Dec 12 01:08:04 2007 +0100 1.2 +++ b/instmacros Wed Dec 12 01:40:33 2007 +0100 1.3 @@ -1,4 +1,9 @@ 1.4 #!/bin/bash 1.5 1.6 -cp macros/*.py ../ep2008/wiki/data/plugin/macro/ 1.7 -chown www-data: ../ep2008/wiki/data/plugin/macro/*.py 1.8 +if [ ! $1 ] ; then 1.9 + echo "Please specify a directory such as ../ep2008 or /tmp/ep2008." 1.10 + exit 1.11 +fi 1.12 + 1.13 +cp macros/*.py $1/wiki/data/plugin/macro/ 1.14 +chown www-data: $1/wiki/data/plugin/macro/*.py