Skip to content

Commit

Permalink
Updated scripts and copy right in Info.plist
Browse files Browse the repository at this point in the history
  • Loading branch information
McZonk committed Jan 14, 2015
1 parent 8ee005a commit 43dc6e6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions QCLUA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
4C43CD9317A8FD8100F3CC9D /* BXRevision.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = BXRevision.sh; sourceTree = "<group>"; };
5019126E1504D58600299676 /* QCLUAFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QCLUAFormatter.h; sourceTree = "<group>"; };
5019126F1504D58600299676 /* QCLUAFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QCLUAFormatter.m; sourceTree = "<group>"; };
501912711504EE3200299676 /* NoodleLineNumberMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NoodleLineNumberMarker.h; sourceTree = "<group>"; };
Expand All @@ -72,6 +71,8 @@
507BE21A1A66622A0005CAD6 /* LUA-QCSupportFunctions.qtz */ = {isa = PBXFileReference; lastKnownFileType = "video.quartz-composer"; path = "LUA-QCSupportFunctions.qtz"; sourceTree = "<group>"; };
507BE21B1A66622A0005CAD6 /* LUA-ReadStructures.qtz */ = {isa = PBXFileReference; lastKnownFileType = "video.quartz-composer"; path = "LUA-ReadStructures.qtz"; sourceTree = "<group>"; };
507BE21C1A66622A0005CAD6 /* LUA-ReadWriteStructures.qtz */ = {isa = PBXFileReference; lastKnownFileType = "video.quartz-composer"; path = "LUA-ReadWriteStructures.qtz"; sourceTree = "<group>"; };
507BE2221A666C4A0005CAD6 /* InstallPlugIn.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = InstallPlugIn.sh; sourceTree = "<group>"; };
507BE2231A666C4A0005CAD6 /* UpdateBuildNumber.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = UpdateBuildNumber.sh; sourceTree = "<group>"; };
50848B081500F45A00A64E33 /* QCLUAPlugInViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QCLUAPlugInViewController.h; sourceTree = "<group>"; };
50848B091500F45A00A64E33 /* QCLUAPlugInViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QCLUAPlugInViewController.m; sourceTree = "<group>"; };
50848B0C1500F47400A64E33 /* QCLUAPlugInViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = QCLUAPlugInViewController.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -165,7 +166,8 @@
4C43CD9217A8FD6F00F3CC9D /* Scripts */ = {
isa = PBXGroup;
children = (
4C43CD9317A8FD8100F3CC9D /* BXRevision.sh */,
507BE2221A666C4A0005CAD6 /* InstallPlugIn.sh */,
507BE2231A666C4A0005CAD6 /* UpdateBuildNumber.sh */,
);
path = Scripts;
sourceTree = "<group>";
Expand Down
2 changes: 1 addition & 1 deletion QCLUA.xcodeproj/xcshareddata/xcschemes/QCLUA.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "# This shell script simply copies the built plug-in to &quot;~/Library/Graphics/Quartz Composer Plug-Ins&quot; and overrides any previous version at that location&#10;&#10;mkdir -p &quot;$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins&quot;&#10;rm -rf &quot;$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins/$FULL_PRODUCT_NAME&quot;&#10;cp -rf &quot;$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME&quot; &quot;$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins/&quot;">
scriptText = "sh &quot;${PROJECT_DIR}/Scripts/InstallPlugIn.sh&quot;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
Expand Down
2 changes: 1 addition & 1 deletion QCLUA/QCLUA-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleVersion</key>
<string>${BX_BUILD_NUMBER}</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 Boinx Software. All rights reserved.</string>
<string>© 1994–2015 Lua.org, PUC-Rio &amp; © 2013-2015 Boinx Software Ltd.</string>
<key>QCPlugInClasses</key>
<array>
<string>QCLUAPlugIn</string>
Expand Down
7 changes: 7 additions & 0 deletions Scripts/InstallPlugIn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# This shell script simply copies the built plug-in to "~/Library/Graphics/Quartz Composer Plug-Ins" and overrides any previous version at that location

mkdir -p "$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins"
rm -rf "$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins/$FULL_PRODUCT_NAME"
cp -rf "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME" "$USER_LIBRARY_DIR/Graphics/Quartz Composer Plug-Ins/"
9 changes: 1 addition & 8 deletions Scripts/BXRevision.sh → Scripts/UpdateBuildNumber.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
#!/bin/sh

# BXRevision.sh
# QCLUA
#
# Created by Michael Ehrmann on 31.07.13.
# Copyright (c) 2013 Boinx Software. All rights reserved.


SCRIPT_DIR=$(dirname $0)
GIT_DIR=$(dirname "${SCRIPT_DIR}")

REV_SHA1=`git --git-dir="${GIT_DIR}/.git" rev-list --max-count=1 HEAD`
GIT_REV=`git --git-dir="${GIT_DIR}/.git" rev-list --reverse HEAD | grep -n ${REV_SHA1} | cut -d: -f1`

echo BX_BUILD_NUMBER = $(( ${GIT_REV}+10000 )) > "${GIT_DIR}/Config/BuildNumber.xcconfig"
echo BX_BUILD_NUMBER = $(( ${GIT_REV}+10000 )) > "${GIT_DIR}/Config/BuildNumber.xcconfig"

0 comments on commit 43dc6e6

Please sign in to comment.