else
echo "Downloading default $WHAT source..."
- git clone "$REPO_URL" -n ${LDK_SOURCE_DIR} 2>&1 >/dev/null
+ git submodule add -b "$TAG" "$REPO_URL" ${LDK_SOURCE_DIR}
if [ $? -ne 0 ]; then
echo "$2 source sync failed!"
echo ""
UpdateTags $OPT $TAG
fi
- if [ ! -z "$TAG" ]; then
- pushd ${LDK_SOURCE_DIR} > /dev/null
- git tag -l 2>/dev/null | grep -q -P "^$TAG\$"
- if [ $? -eq 0 ]; then
- echo "Syncing up with tag $TAG..."
- git checkout -b mybranch_$(date +%Y-%m-%d-%s) $TAG
- echo "$2 source sync'ed to tag $TAG successfully!"
- else
- echo "Couldn't find tag $TAG"
- echo "$2 source sync to tag $TAG failed!"
- RET=1
- fi
- popd > /dev/null
- fi
- echo ""
- echo ""
+# if [ ! -z "$TAG" ]; then
+# pushd ${LDK_SOURCE_DIR} > /dev/null
+# git tag -l 2>/dev/null | grep -q -P "^$TAG\$"
+# if [ $? -eq 0 ]; then
+# echo "Syncing up with tag $TAG..."
+# git checkout -b mybranch_$(date +%Y-%m-%d-%s) $TAG
+# echo "$2 source sync'ed to tag $TAG successfully!"
+# else
+# echo "Couldn't find tag $TAG"
+# echo "$2 source sync to tag $TAG failed!"
+# RET=1
+# fi
+# popd > /dev/null
+# fi
+# echo ""
+# echo ""
return "$RET"
}