Last active
December 14, 2015 22:59
-
-
Save muteKey/5162354 to your computer and use it in GitHub Desktop.
Script for creation needed project structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT=$1 | |
TARGET=$2 | |
if [ "$PROJECT" == '' ] || [ "$TARGET" == '' ]; then | |
echo "Usage $0 projectDirectory targetDirectory" | |
exit | |
fi | |
if [ ! -d $PROJECT/$TARGET ]; then | |
echo "$PROJECT/$TARGET does not exist" | |
exit | |
fi | |
mkdir $PROJECT/$TARGET/Classes | |
mkdir $PROJECT/$TARGET/Classes/UILayer/ | |
mkdir $PROJECT/$TARGET/Classes/BusinessLayer/ | |
mkdir $PROJECT/$TARGET/Classes/DataLayer/ | |
mkdir $PROJECT/$TARGET/External | |
mkdir $PROJECT/$TARGET/Resources | |
mkdir $PROJECT/$TARGET/Resources/Images | |
mv $PROJECT/$TARGET/*.h $PROJECT/$TARGET/Classes/UILayer | |
mv $PROJECT/$TARGET/*.m $PROJECT/$TARGET/Classes/UILayer | |
mv $PROJECT/$TARGET/Classes/UILayer/*AppDelegate.h $PROJECT/$TARGET/Classes | |
mv $PROJECT/$TARGET/Classes/UILayer/*AppDelegate.m $PROJECT/$TARGET/Classes | |
mv $PROJECT/$TARGET/Classes/UILayer/main.m $PROJECT/$TARGET/Classes | |
mv $PROJECT/$TARGET/*.png $PROJECT/$TARGET/Resources/Images | |
mv $PROJECT/$TARGET/*.pch $PROJECT/$TARGET/Resources | |
mv $PROJECT/$TARGET/*.plist $PROJECT/$TARGET/Resources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment