packages: CodeIgniter/codeigniter-install - more dir - install when dir exists
uzsolt
uzsolt at pld-linux.org
Fri Jul 15 14:33:15 CEST 2011
Author: uzsolt Date: Fri Jul 15 12:33:15 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- more dir
- install when dir exists
---- Files affected:
packages/CodeIgniter:
codeigniter-install (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/CodeIgniter/codeigniter-install
diff -u packages/CodeIgniter/codeigniter-install:1.2 packages/CodeIgniter/codeigniter-install:1.3
--- packages/CodeIgniter/codeigniter-install:1.2 Wed Apr 13 13:13:46 2011
+++ packages/CodeIgniter/codeigniter-install Fri Jul 15 14:33:10 2011
@@ -26,9 +26,9 @@
echo "Create main app directory ($APPDIR)"
install -d $APPDIR || exit 1
echo "Creating directories to app directory"
-for dir in config controllers core errors helpers hooks language libraries logs models third_party; do
+for dir in cache config controllers core errors helpers hooks language libraries logs models third_party; do
install -d $APPDIR/$dir || exit 1
- cp -r -n $CI_DIR/application/$dir/* $APPDIR/$dir || exit 1
+ [ -d $CI_DIR/application/$dir ] && (cp -r -n $CI_DIR/application/$dir/* $APPDIR/$dir || exit 1)
done
echo Installation done.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/CodeIgniter/codeigniter-install?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list