Skip to content

Commit

Permalink
Merge branch 'master' of github.com:usvn/usvn
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Nov 25, 2011
2 parents 4f6250b + a71917d commit 60b55f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
8 changes: 6 additions & 2 deletions app/bootstrap.php
Expand Up @@ -36,8 +36,12 @@
/* Necessary Includes */
set_include_path(USVN_LIB_DIR . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace("Zend_");
$autoloader->registerNamespace("USVN_");
$autoloader->registerNamespace("menus_");

require_once 'functions.php';

/* Config Loading or Installation */
Expand Down
16 changes: 8 additions & 8 deletions create_archives.sh
Expand Up @@ -15,20 +15,20 @@ die()
old_pwd=`pwd`

# Exportation
echo 'Exportation du projet dans /tmp/usvn ...'
rm -rf "$TMP_PATH" || die "Erreur de supression de $TMP_PATH"
svn export "$CHECKOUT_URL" "$TMP_PATH" | sed 's/^/EXPORT: /' || die "Erreur d'exportation $CHECKOUT_URL dans $TMP_PATH"
echo 'Exportation to /tmp/usvn ...'
rm -rf "$TMP_PATH" || die "Error can't delete $TMP_PATH"
svn export "$CHECKOUT_URL" "$TMP_PATH" | sed 's/^/EXPORT: /' || die "Error can't export $CHECKOUT_URL to $TMP_PATH"

# Nettoyage
echo 'Suppression des fichiers inutiles ...'
# Cleanup
echo 'Remove unused files...'
cd "$TMP_PATH"
# Test files
find . -name 'Zend' -prune -or -name "*Test.php" -exec rm -vf {} \; | sed 's/^/RM: /'
# Misc Files
rm -rvf build.xml epitech usvn.esproj create_archives.sh | sed 's/^/RM: /'
rm -rvf build.xml create_archives.sh | sed 's/^/RM: /'

# Creation des Archives
echo 'Creation des archives tar.gz et zip ...'
# Creation archives
echo 'Creating tar.gz and zip ...'
version=`cat config/config.ini.example | grep -E "^version" | cut -d'"' -f2`
cd "$TMP_ROOT"
tar cvzf "$old_pwd/usvn-$version.tgz" "$USVN" | sed 's/^/TAR: /'
Expand Down

0 comments on commit 60b55f3

Please sign in to comment.