[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5230: Use 'mkdir -p' instead of checking for the existence of a directory beforehand.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Tue, 30 Nov 2010 15:51:38 -0000

------------------------------------------------------------
revno: 5230
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: hipl
timestamp: Tue 2010-11-30 16:48:14 +0100
message:
  Use 'mkdir -p' instead of checking for the existence of a directory 
beforehand.
modified:
  tools/maintainer/update-html-howto


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'tools/maintainer/update-html-howto'
--- tools/maintainer/update-html-howto  2010-11-29 10:20:45 +0000
+++ tools/maintainer/update-html-howto  2010-11-30 15:48:14 +0000
@@ -8,13 +8,7 @@
 
 set -e
 
-if ! test -d $TMP_DIR; then
-    mkdir $TMP_DIR 2> /dev/null
-fi
-
-if ! test -d $OUTPUT_DIR; then
-    mkdir $OUTPUT_DIR 2> /dev/null
-fi
+mkdir -p $TMP_DIR $OUTPUT_DIR
 
 touch $OUTPUT_DIR/DO_NOT_EDIT_THESE_MANUALLY.GENERATED_AUTOMATICALLY
 cp -r $BZR_HIPL_CACHE/$REVISION/doc $TMP_DIR

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5230: Use 'mkdir -p' instead of checking for the existence of a directory beforehand. - noreply