Skip to content

Instantly share code, notes, and snippets.

@glebus
Forked from muteKey/gist:5162354
Last active December 15, 2015 00:59
Show Gist options
  • Save glebus/5176334 to your computer and use it in GitHub Desktop.
Save glebus/5176334 to your computer and use it in GitHub Desktop.
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