Browse Source

phpDocs auto deployment: Fix output formatting

Daniel Rudolf 9 years ago
parent
commit
fe10bca56b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      _build/deploy-phpdoc.sh
  2. 2 2
      _build/generate-phpdoc.sh

+ 1 - 1
_build/deploy-phpdoc.sh

@@ -21,7 +21,7 @@ echo
 
 
 # check for changes
 # check for changes
 if [ -z "$(git status --porcelain)" ]; then
 if [ -z "$(git status --porcelain)" ]; then
-    echo "Nothing to deploy; skipping..."
+    printf 'Nothing to deploy; skipping...\n\n'
     exit 0
     exit 0
 fi
 fi
 
 

+ 2 - 2
_build/generate-phpdoc.sh

@@ -23,14 +23,14 @@ phpdoc project:parse --config "$PHPDOC_CONFIG" \
 # check for changes
 # check for changes
 printf '\nCheck for phpDoc cache changes...\n'
 printf '\nCheck for phpDoc cache changes...\n'
 if [ -z "$(git status --porcelain "$PHPDOC_CACHE_DIR")" ]; then
 if [ -z "$(git status --porcelain "$PHPDOC_CACHE_DIR")" ]; then
-    echo "No changes detected, don't rewrite phpDoc API docs..."
+    printf 'No changes detected; skipping phpDocs renewal...\n\n'
     exit 0
     exit 0
 fi
 fi
 
 
 # transform phpDoc files (i.e. rewrite API docs)
 # transform phpDoc files (i.e. rewrite API docs)
 # NOTE: actually this should be `phpdoc project:transform`,
 # NOTE: actually this should be `phpdoc project:transform`,
 #       but the command seems to be broken...
 #       but the command seems to be broken...
-printf '\nRewrite phpDoc API docs...\n'
+printf '\nRewrite phpDocs...\n'
 rm -rf "$PHPDOC_TARGET_DIR"
 rm -rf "$PHPDOC_TARGET_DIR"
 phpdoc project:run --config "$PHPDOC_CONFIG" \
 phpdoc project:run --config "$PHPDOC_CONFIG" \
     --cache-folder "$PHPDOC_CACHE_DIR" \
     --cache-folder "$PHPDOC_CACHE_DIR" \