You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2013/09/10 06:43:09 UTC

ios commit: [CB-4469] Move copy-build-www-step.sh into scripts template

Updated Branches:
  refs/heads/master af52dafa5 -> 14cbc89ae


[CB-4469] Move copy-build-www-step.sh into scripts template


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/14cbc89a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/14cbc89a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/14cbc89a

Branch: refs/heads/master
Commit: 14cbc89ae4d3e33c071bad6237dd5845717c7261
Parents: af52daf
Author: Ian Clelland <ic...@chromium.org>
Authored: Mon Sep 9 18:35:14 2013 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Mon Sep 9 18:10:17 2013 -0700

----------------------------------------------------------------------
 .../project/cordova/lib/copy-www-build-step.sh  | 79 --------------------
 .../scripts/cordova/lib/copy-www-build-step.sh  | 79 ++++++++++++++++++++
 2 files changed, 79 insertions(+), 79 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/14cbc89a/bin/templates/project/cordova/lib/copy-www-build-step.sh
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/copy-www-build-step.sh b/bin/templates/project/cordova/lib/copy-www-build-step.sh
deleted file mode 100755
index 1fe36d8..0000000
--- a/bin/templates/project/cordova/lib/copy-www-build-step.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-#
-#    Licensed to the Apache Software Foundation (ASF) under one
-#    or more contributor license agreements.  See the NOTICE file
-#    distributed with this work for additional information
-#    regarding copyright ownership.  The ASF licenses this file
-#    to you under the Apache License, Version 2.0 (the
-#    "License"); you may not use this file except in compliance
-#    with the License.  You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing,
-#    software distributed under the License is distributed on an
-#    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#    KIND, either express or implied.  See the License for the
-#    specific language governing permissions and limitations
-#    under the License.
-#
-#
-#   This script copies the www directory into the Xcode project.
-#
-#   This script should not be called directly.
-#   It is called as a build step from Xcode.
-
-SRC_DIR="www/"
-DST_DIR="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/www"
-COPY_HIDDEN=
-ORIG_IFS=$IFS
-IFS=$(echo -en "\n\b")
-
-if [[ ! -e "$SRC_DIR" ]]; then
-  echo "Path does not exist: $SRC_DIR"
-  exit 1
-fi
-
-if [[ -n $COPY_HIDDEN ]]; then
-  alias do_find='find "$SRC_DIR"'
-else
-  alias do_find='find -L "$SRC_DIR" -name ".*" -prune -o'
-fi
-
-time (
-# Code signing files must be removed or else there are
-# resource signing errors.
-rm -rf "$DST_DIR" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/_CodeSignature" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/PkgInfo" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/embedded.mobileprovision"
-
-# Directories
-for p in $(do_find -type d -print); do
-  subpath="${p#$SRC_DIR}"
-  mkdir "$DST_DIR$subpath" || exit 1
-done
-
-# Symlinks
-for p in $(do_find -type l -print); do
-  subpath="${p#$SRC_DIR}"
-  source=$(readlink $SRC_DIR$subpath)
-  sourcetype=$(stat -f "%HT%SY" $source)
-  if [ "$sourcetype" = "Directory" ]; then
-    mkdir "$DST_DIR$subpath" || exit 2
-  else
-    rsync -a "$source" "$DST_DIR$subpath" || exit 3
-  fi
-done
-
-# Files
-for p in $(do_find -type f -print); do
-  subpath="${p#$SRC_DIR}"
-  if ! ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 2>/dev/null; then
-    rsync -a "$SRC_DIR$subpath" "$DST_DIR$subpath" || exit 4
-  fi
-done
-
-)
-IFS=$ORIG_IFS
-

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/14cbc89a/bin/templates/scripts/cordova/lib/copy-www-build-step.sh
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/copy-www-build-step.sh b/bin/templates/scripts/cordova/lib/copy-www-build-step.sh
new file mode 100755
index 0000000..1fe36d8
--- /dev/null
+++ b/bin/templates/scripts/cordova/lib/copy-www-build-step.sh
@@ -0,0 +1,79 @@
+#!/bin/sh
+#
+#    Licensed to the Apache Software Foundation (ASF) under one
+#    or more contributor license agreements.  See the NOTICE file
+#    distributed with this work for additional information
+#    regarding copyright ownership.  The ASF licenses this file
+#    to you under the Apache License, Version 2.0 (the
+#    "License"); you may not use this file except in compliance
+#    with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing,
+#    software distributed under the License is distributed on an
+#    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#    KIND, either express or implied.  See the License for the
+#    specific language governing permissions and limitations
+#    under the License.
+#
+#
+#   This script copies the www directory into the Xcode project.
+#
+#   This script should not be called directly.
+#   It is called as a build step from Xcode.
+
+SRC_DIR="www/"
+DST_DIR="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/www"
+COPY_HIDDEN=
+ORIG_IFS=$IFS
+IFS=$(echo -en "\n\b")
+
+if [[ ! -e "$SRC_DIR" ]]; then
+  echo "Path does not exist: $SRC_DIR"
+  exit 1
+fi
+
+if [[ -n $COPY_HIDDEN ]]; then
+  alias do_find='find "$SRC_DIR"'
+else
+  alias do_find='find -L "$SRC_DIR" -name ".*" -prune -o'
+fi
+
+time (
+# Code signing files must be removed or else there are
+# resource signing errors.
+rm -rf "$DST_DIR" \
+       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/_CodeSignature" \
+       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/PkgInfo" \
+       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/embedded.mobileprovision"
+
+# Directories
+for p in $(do_find -type d -print); do
+  subpath="${p#$SRC_DIR}"
+  mkdir "$DST_DIR$subpath" || exit 1
+done
+
+# Symlinks
+for p in $(do_find -type l -print); do
+  subpath="${p#$SRC_DIR}"
+  source=$(readlink $SRC_DIR$subpath)
+  sourcetype=$(stat -f "%HT%SY" $source)
+  if [ "$sourcetype" = "Directory" ]; then
+    mkdir "$DST_DIR$subpath" || exit 2
+  else
+    rsync -a "$source" "$DST_DIR$subpath" || exit 3
+  fi
+done
+
+# Files
+for p in $(do_find -type f -print); do
+  subpath="${p#$SRC_DIR}"
+  if ! ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 2>/dev/null; then
+    rsync -a "$SRC_DIR$subpath" "$DST_DIR$subpath" || exit 4
+  fi
+done
+
+)
+IFS=$ORIG_IFS
+