You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Download template archive to tmp and unpack to target dir
echo "> Downloading and extracting template..."
wget -q -O $TMP_ARCHIVE $SOURCE_ARCHIVE
unzip -q $TMP_ARCHIVE -d $TMP_DIR
mv $TMP_DIR/* $TARGET_DIR
# Replace project name in Eclipse project file
sed -i 's/Processing3EclipseTemplate/'$PROJECT_NAME'/g' $TARGET_DIR/.project
# Initialize git
echo "> Initializing Git..."
git init $TARGET_DIR
# Cleanup
echo "> Cleaning up..."
rm $TMP_ARCHIVE
rm $TARGET_DIR/readme.md
rm $TARGET_DIR/setup.sh
rm -- $0
echo "Done, to start using this template, in the Eclipse project explorer choose 'File' > 'Import' > 'Existing projects into Workspace' and then select '$TARGET_DIR'"