1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/JNET-iOS_build_chameleon

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
clean 2.1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zhouzhineng Отправлено 06.08.2015 12:54 98ffdb2
#!/bin/bash
#
# 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.
#
#
# Clean a Cordova/iOS project
#
# ./clean 路径
set -e
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
echo "开始clean"
#参数获取
INDEX=0
for param in $*
do
# echo $INDEX "--" $param
array[$INDEX]=$param
INDEX=$[ $INDEX+1 ]
done
PROJECT_PATH=${array[0]}
schemeTarget=${array[1]}
cd $PROJECT_PATH
# 判断是否存在workspace 并获取相应的项目信息
if [ ! $( ls "$PROJECT_PATH" | grep .xcworkspace ) ]; then
#项目名称
XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
else
#获取项目空间相应信息
XCWORKSPACE=$( ls "$PROJECT_PATH" | grep .xcworkspace )
XCWORKSPACE_NAME=$(basename "$XCWORKSPACE" .xcworkspace)
fi
source "$CORDOVA_PATH/check_reqs"
cd "$PROJECT_PATH"
if [ ! $( ls "$PROJECT_PATH" | grep .xcworkspace ) ]; then
# 下面为对工程的编译的清楚
xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Debug -alltargets clean
xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Release -alltargets clean
else
# 以下为对项目空间的编译的清楚
xcodebuild -workspace "$XCWORKSPACE_NAME.xcworkspace" -configuration Debug -scheme $schemeTarget clean
xcodebuild -workspace "$XCWORKSPACE_NAME.xcworkspace" -configuration Release -scheme $schemeTarget clean
fi
rm -rf "build"
echo "结束clean"

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/JNET-iOS_build_chameleon.git
git@api.gitlife.ru:oschina-mirror/JNET-iOS_build_chameleon.git
oschina-mirror
JNET-iOS_build_chameleon
JNET-iOS_build_chameleon
master