buildtools.git
3 years agoFix build complaints about unset variable "e" master
Greg Hurrell [Tue, 16 Oct 2018 13:40:13 +0000 (15:40 +0200)] 
Fix build complaints about unset variable "e"

3 years agoFix whitespace damage
Greg Hurrell [Tue, 16 Oct 2018 13:40:03 +0000 (15:40 +0200)] 
Fix whitespace damage

3 years agoMake usage of Bash explicit in Common.sh
Greg Hurrell [Tue, 16 Oct 2018 13:39:45 +0000 (15:39 +0200)] 
Make usage of Bash explicit in Common.sh

3 years agoRemove DONATIONS section from README
Greg Hurrell [Tue, 16 Oct 2018 13:05:01 +0000 (15:05 +0200)] 
Remove DONATIONS section from README

3 years agoKill off dead links in README
Greg Hurrell [Tue, 16 Oct 2018 12:58:27 +0000 (14:58 +0200)] 
Kill off dead links in README

3 years agoUpdate copyright notices
Greg Hurrell [Tue, 16 Oct 2018 12:57:56 +0000 (14:57 +0200)] 
Update copyright notices

End with "-present" to make them future proof. Replace pseudonym with
name.

3 years agoAssume wincent-strings-util is installed in $HOME/bin
Greg Hurrell [Tue, 16 Oct 2018 12:38:29 +0000 (14:38 +0200)] 
Assume wincent-strings-util is installed in $HOME/bin

Because current Xcode environment executes scripts with this
not-super-useful `$PATH`:

  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/local/bin
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/bin
  /Applications/Xcode.app/Contents/Developer/usr/bin
  /Applications/Xcode.app/Contents/Developer/usr/local/bin
  /usr/local/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin

3 years agoTweak to work with newer Ruby
Greg Hurrell [Mon, 15 Oct 2018 19:20:37 +0000 (21:20 +0200)] 
Tweak to work with newer Ruby

8 years agoApply changes for ARC-compatibility
Greg Hurrell [Sun, 18 May 2014 23:38:04 +0000 (16:38 -0700)] 
Apply changes for ARC-compatibility

Signed-off-by: Greg Hurrell <greg@hurrell.net>
11 years agoTwo more legacy settings bite the dust
Wincent Colaiuta [Fri, 5 Nov 2010 21:29:20 +0000 (22:29 +0100)] 
Two more legacy settings bite the dust

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove another legacy setting
Wincent Colaiuta [Fri, 5 Nov 2010 21:24:24 +0000 (22:24 +0100)] 
Remove another legacy setting

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAnother dead-in-the-water build setting
Wincent Colaiuta [Fri, 5 Nov 2010 21:23:25 +0000 (22:23 +0100)] 
Another dead-in-the-water build setting

If it doesn't even have an human-readable setting in the Xcode UI, then
it's legacy.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove ZERO_LINK setting, as it is long since dead
Wincent Colaiuta [Fri, 5 Nov 2010 21:17:01 +0000 (22:17 +0100)] 
Remove ZERO_LINK setting, as it is long since dead

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMove common settings up into the base xcconfig file
Wincent Colaiuta [Fri, 5 Nov 2010 21:15:59 +0000 (22:15 +0100)] 
Move common settings up into the base xcconfig file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDrop GCC_SYMBOLS_PRIVATE_EXTERN setting
Wincent Colaiuta [Fri, 5 Nov 2010 21:02:13 +0000 (22:02 +0100)] 
Drop GCC_SYMBOLS_PRIVATE_EXTERN setting

This always used to work for me with my 32-bit builds, but now that I am
targeting 64-bit it's biting me. Basically, it hides Objective-C classes
now, which means you can't link to frameworks built with this build
setting active.

A couple resources I turned up in my search for info on this:

  http://lists.apple.com/archives/xcode-users/2009/Dec/msg00178.html
  (post from a guy also surprised by the behavior change in the move
  from 32-bit to 64-bit)

  http://www.cocoabuilder.com/archive/cocoa/217622-how-to-export-class-while-the-framework-gcc-symbols-private-extern-is-yes.html
  (thread which suggests that this might actually be a Clang/LLVM thing
  only, as GCC apparently thinks that visibility is "not applicable to
  Objective-C classes")

Whatever the case, I'm losing this build setting. It was only there to
make reverse-engineering a tiny bit harder, and I'm much more interested
in openness and things just working, than obfuscation and secrecy
nowadays.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate copyright year range
Wincent Colaiuta [Fri, 5 Nov 2010 19:05:22 +0000 (20:05 +0100)] 
Update copyright year range

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove another file made irrelevant by @rpath/-rpath
Wincent Colaiuta [Fri, 5 Nov 2010 19:05:08 +0000 (20:05 +0100)] 
Remove another file made irrelevant by @rpath/-rpath

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove files made redundant by @rpath/-rpath
Wincent Colaiuta [Fri, 5 Nov 2010 19:00:22 +0000 (20:00 +0100)] 
Remove files made redundant by @rpath/-rpath

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoFix typo in comment
Wincent Colaiuta [Fri, 5 Nov 2010 18:47:10 +0000 (19:47 +0100)] 
Fix typo in comment

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUse @rpath instead of @exectuable_path
Wincent Colaiuta [Fri, 5 Nov 2010 18:39:50 +0000 (19:39 +0100)] 
Use @rpath instead of @exectuable_path

This will allow us to build a single framework for use in a variety of
contexts. Rather than overwriting the install path with
install_name_tool(1), we can just change the setting we pass to the
linker when building the consuming application.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSet LD_DYLIB_INSTALL_NAME using @executable_path
Wincent Colaiuta [Thu, 4 Nov 2010 21:36:49 +0000 (22:36 +0100)] 
Set LD_DYLIB_INSTALL_NAME using @executable_path

This should allow applications to locate the framework when they embed
it. In order to install such a framework to /Library/Frameworks/, the
InstallFramework.sh script can be used.

I haven't used it for some time, but I believe the
installed-framework-target.xcconfig file is probably in a broken state
right now; without the INSTALL_PATH and DSTROOT stuff it should be
possible to build a framework suitable for installation using the
default Xcode build setting for LD_DYLIB_INSTALL_NAME.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoFix a comment typo
Wincent Colaiuta [Thu, 4 Nov 2010 18:27:53 +0000 (19:27 +0100)] 
Fix a comment typo

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSYMROOT is now ../build rather than ../../build
Wincent Colaiuta [Thu, 4 Nov 2010 18:20:05 +0000 (19:20 +0100)] 
SYMROOT is now ../build rather than ../../build

This is a big change but will allow us to intermix complex,
multi-component projects with invidividual component projects.
The comments included in this commit describe the kind of project layout
that is intended to work well with this setting.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove unnecessary DSTROOT setting
Wincent Colaiuta [Wed, 3 Nov 2010 23:03:52 +0000 (00:03 +0100)] 
Remove unnecessary DSTROOT setting

The default setting of "/tmp/$(PROJECT_NAME)" is fine here.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAnnotate some more cryptic build settings
Wincent Colaiuta [Wed, 3 Nov 2010 22:56:09 +0000 (23:56 +0100)] 
Annotate some more cryptic build settings

SYMROOT is actually exposed as "Build Products Path" in the Xcode
settings, and OBJROOT as "Intermediate Build Files Path".

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoDrop SHARED_PROJECTS_DIR setting
Wincent Colaiuta [Wed, 3 Nov 2010 22:52:52 +0000 (23:52 +0100)] 
Drop SHARED_PROJECTS_DIR setting

This is not used anywhere at all, and I am moving away from the "shared
projects" approach in favor of more use of Git submodules. That is,
instead of:

  project-1 (in SHARED_PROJECTS_DIR)
  framework-1 (in SHARED_PROJECTS_DIR)
  framework-2 (in SHARED_PROJECTS_DIR)

I am moving towards:

  project-1
  project-1/framework-1 (as submodule)
  project-1/framework-2 (as submodule)

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd note on why BUILDTOOLS_DIR is set the way it is
Wincent Colaiuta [Wed, 3 Nov 2010 22:52:25 +0000 (23:52 +0100)] 
Add note on why BUILDTOOLS_DIR is set the way it is

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoLay separate build-intermediates folder to rest
Wincent Colaiuta [Wed, 3 Nov 2010 22:46:30 +0000 (23:46 +0100)] 
Lay separate build-intermediates folder to rest

I'm currently trying to simplify the build folder layout to handle some
new submodule workflows, so this is one way to cut down the number of
moving parts. The OBJROOT folder is actually fairly neat and tidy, so
merging its contents into SYMROOT is not going to clutter things up.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMove 64-bit ARCHS setting up into base configuration
Wincent Colaiuta [Wed, 3 Nov 2010 21:11:18 +0000 (22:11 +0100)] 
Move 64-bit ARCHS setting up into base configuration

This, so that both Debug and Release builds can benefit from it.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoTarget 64-bit architecture only
Wincent Colaiuta [Sun, 31 Oct 2010 21:10:51 +0000 (22:10 +0100)] 
Target 64-bit architecture only

With this we can make use of new features that are available only in the
"modern" Objective-C runtime. I don't plan on publicly releasing any
products depending on the modern runtime until Mac OS X Lion is
available to the public.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove evil BOM from help.tmpl
Wincent Colaiuta [Sat, 28 Aug 2010 19:21:26 +0000 (21:21 +0200)] 
Remove evil BOM from help.tmpl

This was causing Walrus to choke when running under 1.9.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoHelp: make meta tags customizable via placeholders
Wincent Colaiuta [Mon, 23 Aug 2010 18:10:41 +0000 (20:10 +0200)] 
Help: make meta tags customizable via placeholders

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoHelp: remove generator line
Wincent Colaiuta [Mon, 23 Aug 2010 18:02:01 +0000 (20:02 +0200)] 
Help: remove generator line

This just creates noise in the VCS with each Walrus update, given that
the generated files tend not to change at all between versions. In any
case the HTML is not really the place to advertise the templating
engine; that's what blogs and other forums are for.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdapt sample Rakefile for Walrus 0.4
Wincent Colaiuta [Mon, 23 Aug 2010 17:27:05 +0000 (19:27 +0200)] 
Adapt sample Rakefile for Walrus 0.4

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate paths for Walrus 0.4
Wincent Colaiuta [Mon, 23 Aug 2010 17:18:24 +0000 (19:18 +0200)] 
Update paths for Walrus 0.4

Under Walrus 0.4 it makes sense to use "chained" extensions.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd Rakefile.example
Wincent Colaiuta [Mon, 23 Aug 2010 12:43:23 +0000 (14:43 +0200)] 
Add Rakefile.example

This is an application-level Rakefile (intended to run from SOURCE_ROOT/Rakefile)
that can be used to update the help files. Rake's dependency analysis is used to
ensure that only items which need to be re-compiled or re-filled actually get
updated.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd missing license header to Rakefile
Wincent Colaiuta [Mon, 23 Aug 2010 12:42:03 +0000 (14:42 +0200)] 
Add missing license header to Rakefile

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove unnecessary separators from example templates
Wincent Colaiuta [Mon, 23 Aug 2010 12:32:34 +0000 (14:32 +0200)] 
Remove unnecessary separators from example templates

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate front page example template to match Hextrapolate
Wincent Colaiuta [Mon, 23 Aug 2010 12:32:17 +0000 (14:32 +0200)] 
Update front page example template to match Hextrapolate

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove license header from example templates
Wincent Colaiuta [Mon, 23 Aug 2010 12:31:52 +0000 (14:31 +0200)] 
Remove license header from example templates

The license of buildtools itself shouldn't be propagated into templates
which are created in other projects and based on the examples. The
including project should instead insert its own license, if applicable.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoupdate_full_index.rb: indent index items
Wincent Colaiuta [Mon, 23 Aug 2010 11:28:00 +0000 (13:28 +0200)] 
update_full_index.rb: indent index items

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove unneeded 'rm' from update_full_index.rb
Wincent Colaiuta [Mon, 23 Aug 2010 11:27:21 +0000 (13:27 +0200)] 
Remove unneeded 'rm' from update_full_index.rb

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoupdate_full_index.rb: add missing require statement
Wincent Colaiuta [Mon, 23 Aug 2010 11:21:10 +0000 (13:21 +0200)] 
update_full_index.rb: add missing require statement

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoupdate_full_index.rb: rescue EOFError
Wincent Colaiuta [Mon, 23 Aug 2010 11:17:42 +0000 (13:17 +0200)] 
update_full_index.rb: rescue EOFError

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMake update_full_index.rb script executable
Wincent Colaiuta [Mon, 23 Aug 2010 11:12:03 +0000 (13:12 +0200)] 
Make update_full_index.rb script executable

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMove example files to their corresponding place in the hierarchy
Wincent Colaiuta [Mon, 23 Aug 2010 11:07:05 +0000 (13:07 +0200)] 
Move example files to their corresponding place in the hierarchy

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUpdate example full index template with notes on scripts
Wincent Colaiuta [Mon, 23 Aug 2010 10:55:27 +0000 (12:55 +0200)] 
Update example full index template with notes on scripts

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd update_full_index.rb
Wincent Colaiuta [Mon, 23 Aug 2010 10:53:23 +0000 (12:53 +0200)] 
Add update_full_index.rb

This script reads the standard input and inserts it between the
start and end markers inside the full_index.tmpl file.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoGit: don't ignore update_full_index.rb
Wincent Colaiuta [Mon, 23 Aug 2010 10:52:25 +0000 (12:52 +0200)] 
Git: don't ignore update_full_index.rb

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoindex_grep.rb: whitespace fixes
Wincent Colaiuta [Sun, 22 Aug 2010 19:58:52 +0000 (21:58 +0200)] 
index_grep.rb: whitespace fixes

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoWrap/reformat code comments in index_grep.rb
Wincent Colaiuta [Sun, 22 Aug 2010 19:57:39 +0000 (21:57 +0200)] 
Wrap/reformat code comments in index_grep.rb

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd missing license header to index_grep.rb
Wincent Colaiuta [Sun, 22 Aug 2010 19:57:14 +0000 (21:57 +0200)] 
Add missing license header to index_grep.rb

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoCorrect file extension (.tmpl.txt, not _tmpl.txt) for example template
Wincent Colaiuta [Sun, 22 Aug 2010 19:54:43 +0000 (21:54 +0200)] 
Correct file extension (.tmpl.txt, not _tmpl.txt) for example template

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMake 'compile' the default rake task
Wincent Colaiuta [Sat, 21 Aug 2010 22:21:45 +0000 (00:21 +0200)] 
Make 'compile' the default rake task

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoGit: ignore compiled help files
Wincent Colaiuta [Sat, 21 Aug 2010 21:53:59 +0000 (23:53 +0200)] 
Git: ignore compiled help files

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRename settings.tmpl to .txt to avoid it being compiled separately
Wincent Colaiuta [Sat, 21 Aug 2010 21:52:09 +0000 (23:52 +0200)] 
Rename settings.tmpl to .txt to avoid it being compiled separately

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoSpecial dependencies for files which include settings.tmpl
Wincent Colaiuta [Sat, 21 Aug 2010 21:48:16 +0000 (23:48 +0200)] 
Special dependencies for files which include settings.tmpl

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoUse "rule" to synthesize file tasks
Wincent Colaiuta [Sat, 21 Aug 2010 21:41:43 +0000 (23:41 +0200)] 
Use "rule" to synthesize file tasks

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agohelp/NOTES.txt: reference rake task
Wincent Colaiuta [Sat, 21 Aug 2010 20:11:13 +0000 (22:11 +0200)] 
help/NOTES.txt: reference rake task

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd Rakefile to recompile templates only when needed
Wincent Colaiuta [Sat, 21 Aug 2010 20:10:23 +0000 (22:10 +0200)] 
Add Rakefile to recompile templates only when needed

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoRemove needless namespacing within WalrusGrammar namespace
Wincent Colaiuta [Sat, 21 Aug 2010 19:43:35 +0000 (21:43 +0200)] 
Remove needless namespacing within WalrusGrammar namespace

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoReformat code comments for better display on narrow terminals
Wincent Colaiuta [Sat, 21 Aug 2010 19:42:53 +0000 (21:42 +0200)] 
Reformat code comments for better display on narrow terminals

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoWhitespace fixes
Wincent Colaiuta [Sat, 21 Aug 2010 19:27:29 +0000 (21:27 +0200)] 
Whitespace fixes

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoChange WOCommon references to buildtools
Wincent Colaiuta [Sat, 21 Aug 2010 19:27:20 +0000 (21:27 +0200)] 
Change WOCommon references to buildtools

As these modify the headers, update the headers to include the BSD
license at the same time.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoImport help files from WOCommon
Wincent Colaiuta [Sat, 21 Aug 2010 18:36:56 +0000 (20:36 +0200)] 
Import help files from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoReleaseNotes.sh: handle first release Synergy-4.3 Synergy-4.4 Synergy-4.4.1 Synergy-4.4.1b Synergy-4.4.2 Synergy-4.4.3 Synergy-4.4b Synergy-4.4b2 wincent-icon-util-2.0.1
Wincent Colaiuta [Sat, 29 Aug 2009 13:49:33 +0000 (15:49 +0200)] 
ReleaseNotes.sh: handle first release

Our "git describe HEAD^" call fails for the first tagged release because
there are no prior tags.

Catch the error and just use the first root commit instead.

This is not the only place where we use "git describe", but it is the
most likely place where problems will crop up in practice (because
usually there is at least _one_ annotated tag in the repo if we are
running this script).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoReleaseNotes.sh: handle submodules ahead of annotated tags wincent-icon-util-2.0 wincent-strings-util-2.0.1
Wincent Colaiuta [Sat, 29 Aug 2009 12:18:14 +0000 (14:18 +0200)] 
ReleaseNotes.sh: handle submodules ahead of annotated tags

These changes only affect behaviour when the "--tag-prefix=" switch is
passed in, which is typically when working within submodules.

Things worked correctly when the submodule HEAD was at an annotated tag,
but broke down when it was somewhere ahead of one.

Without the "--tag-prefix=" switch we correctly produced results like:

  "Changes from 2.0 to 2.0-13-gf96082e"

But with the switch we instead produced results like:

  "Changes from 2.0 to 2.0"

And we didn't list any changes at all.

Now we list changes since the last annotated tag in that case, bring the
behaviour into line for both cases.

Note that this commit does add one "BUG" comment, because I noticed
while testing that this will break down in repos with no annotated tags
("git describe" bails in such repos). There are probably other issues
too when running the script in repos whose HEAD points to older TAGS (I
suspect it will always just produce release notes for the latest
version), so there is still room for some improvement.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoSwitch to Clang/LLVM Synergy-4.0.1 Synergy-4.0.1a Synergy-4.0.1b Synergy-4.0a Synergy-4.1 Synergy-4.1.1 Synergy-4.1.1b Synergy-4.1a Synergy-4.1b Synergy-4.2 Synergy-4.2.1 Synergy-4.2.1b Synergy-4.2b Synergy-4.3b wincent-strings-util-2.0
Wincent Colaiuta [Thu, 27 Aug 2009 22:56:41 +0000 (00:56 +0200)] 
Switch to Clang/LLVM

This gives us better warnings and errors.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoSwitch to Snow Leopard SDK
Wincent Colaiuta [Thu, 27 Aug 2009 12:54:23 +0000 (14:54 +0200)] 
Switch to Snow Leopard SDK

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: update for Snow Leopard
Wincent Colaiuta [Thu, 27 Aug 2009 12:54:05 +0000 (14:54 +0200)] 
README: update for Snow Leopard

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoDrop PowerPC support
Wincent Colaiuta [Thu, 27 Aug 2009 12:39:03 +0000 (14:39 +0200)] 
Drop PowerPC support

This branch is for Snow Leopard only, which itself requires an Intel
processor, so the PPC stuff can go.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: add note on tags leopard maint
Wincent Colaiuta [Sun, 23 Aug 2009 19:38:06 +0000 (21:38 +0200)] 
README: add note on tags

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: remove unnecessary references to enclosing directory
Wincent Colaiuta [Sun, 23 Aug 2009 19:30:38 +0000 (21:30 +0200)] 
README: remove unnecessary references to enclosing directory

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: add notes on repository URLs and layout
Wincent Colaiuta [Sun, 23 Aug 2009 19:30:16 +0000 (21:30 +0200)] 
README: add notes on repository URLs and layout

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: remove "included tools" list
Wincent Colaiuta [Sun, 23 Aug 2009 19:22:43 +0000 (21:22 +0200)] 
README: remove "included tools" list

This list is a little out of date, so rip it out.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoREADME: indent paths to make them stand out
Wincent Colaiuta [Sun, 23 Aug 2009 19:21:51 +0000 (21:21 +0200)] 
README: indent paths to make them stand out

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate README for buildtools as a Git submodule
Wincent Colaiuta [Sun, 23 Aug 2009 19:20:10 +0000 (21:20 +0200)] 
Update README for buildtools as a Git submodule

Since starting to use the buildtools as a Git submodule in each project
some of the relative paths have changed.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix GPL references in the README
Wincent Colaiuta [Sun, 23 Aug 2009 19:16:27 +0000 (21:16 +0200)] 
Fix GPL references in the README

These were overlooked when I switched to the BSD license.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRewrap README to 80 columns
Wincent Colaiuta [Sun, 23 Aug 2009 19:13:07 +0000 (21:13 +0200)] 
Rewrap README to 80 columns

Using "gq" in Vim.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRemove legacy $Id$ tag
Wincent Colaiuta [Sun, 23 Aug 2009 19:10:00 +0000 (21:10 +0200)] 
Remove legacy $Id$ tag

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoChange location of BUILDTOOLS_DIR Synergy-3.5.4a Synergy-3.5.5a
Wincent Colaiuta [Wed, 24 Jun 2009 16:46:47 +0000 (18:46 +0200)] 
Change location of BUILDTOOLS_DIR

Make the buildtools Git submodule-friendly by changing the BUILTOOLS_DIR
variable: projects which use the base config file should now expect to
find the buildtools in a subdirectory of the parent project's source
root.

This should make individual projects more robust in the face of changes
to buildtools, because it means that they can pin the version of
buildtools that they use to a specific, "known good" commit.

The developer of a project using buildtools can chose to integrate
upstream changes when he/she wishes, rather than being forced to
integrate and fix any breakage just because upstream happened to move in
the intervening interval.

It should also make it easier to make initial clones of projects using
buildtools because now users can just pull down the parent project
rather than having to worry about performing multiple clones and
ensuring that each repository is in the appropriate relative location.

This is actually quite a large change so at the time of writing I've
split the repository into two branches: this commit is appearing first
on the "master" branch, while the "maint" branch is being left as it was
before.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoSwitch to BSD license
Wincent Colaiuta [Thu, 21 May 2009 19:42:29 +0000 (21:42 +0200)] 
Switch to BSD license

This is the simplified, 2-clause version of the BSD license, as used by
the FreeBSD project.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoWhitespace fixes for UpdateBuildVersionNumbers.sh
Wincent Colaiuta [Thu, 21 May 2009 19:38:58 +0000 (21:38 +0200)] 
Whitespace fixes for UpdateBuildVersionNumbers.sh

Remove whitespace from lines which should be empty.

Remove trailing whitespace.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoFix whitespace in PreprocessInfoPlistStrings.sh
Wincent Colaiuta [Thu, 21 May 2009 19:32:32 +0000 (21:32 +0200)] 
Fix whitespace in PreprocessInfoPlistStrings.sh

Remove whitespace on lines which should be empty.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoFix absolute path bug in UpdateStringsFiles script Synergy-3.5a6 Synergy-3.5a7 Synergy-3.5a8
Wincent Colaiuta [Fri, 4 Apr 2008 11:41:02 +0000 (13:41 +0200)] 
Fix absolute path bug in UpdateStringsFiles script

The LANGUAGE variable contains an absolute path; add a BASE_LANGUAGE
variable containing only the basename for those occasions where what you
want is actually a relative path.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoFix spelling typo in PreprocessInfoPlistStrings script
Wincent Colaiuta [Fri, 4 Apr 2008 11:39:14 +0000 (13:39 +0200)] 
Fix spelling typo in PreprocessInfoPlistStrings script

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoAppend extra blank lines at end of output
Wincent Colaiuta [Wed, 23 Jan 2008 15:09:54 +0000 (16:09 +0100)] 
Append extra blank lines at end of output

When emitting release notes for a project that is spread out across
multiple repositories we may end up invoking the ReleaseNotes.sh script
several time, successively appending more and more output to the
generated notes.

Add two extra line feeds to make this easier: one because "git log"
doesn't seem to emit one, and another to provide visual separation
between sections.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoAutomatically append wildcard to tag prefix
Wincent Colaiuta [Wed, 23 Jan 2008 15:08:19 +0000 (16:08 +0100)] 
Automatically append wildcard to tag prefix

Make life slightly easier for callers by automatically appending the
wildcard (asterisk) to the passed-in tag prefix, thus saving them from
having to do it.

This assumes a convention that tags will following a
"product name-product version" naming pattern.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoFix expansion error in release notes script
Wincent Colaiuta [Wed, 23 Jan 2008 15:07:34 +0000 (16:07 +0100)] 
Fix expansion error in release notes script

This expansion was never going to work because the two components were
back to front.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoUse common tools for better diagnostic messages
Wincent Colaiuta [Wed, 23 Jan 2008 15:06:50 +0000 (16:06 +0100)] 
Use common tools for better diagnostic messages

In the release notes script, source Common.sh and use its functions for
emitting diagnostic messages.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoAlways direct error and diagnostic output to the stderr
Wincent Colaiuta [Wed, 23 Jan 2008 14:58:28 +0000 (15:58 +0100)] 
Always direct error and diagnostic output to the stderr

Without this it may be harder to diagnose script failures (for example,
in the ReleaseNotes.sh script we normally redirect the output to a file;
in that case any error messages wind up in the file rather than in the
Xcode build window where we want to see them).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoTeach release notes script to take an optional prefix parameter
Wincent Colaiuta [Wed, 23 Jan 2008 14:02:00 +0000 (15:02 +0100)] 
Teach release notes script to take an optional prefix parameter

With this parameter and the help of a convention we can now produce
release notes for projects spread across multiple repositories.

In the "main" project repository we just invoke the script as normal
(without parameters) and it uses "git describe" to find the last tag,
the previous tag, and emit the differences between them.

In the secondary repositories we pass a "tag prefix" which we use to
locate the tags corresponding to the release of the "main" project; in
other words this depends on a convention in which we create tags in
the secondary repositories which have a unique prefix which identifies
the main project.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoUse non-dashed form of Git commands
Wincent Colaiuta [Wed, 23 Jan 2008 12:04:08 +0000 (13:04 +0100)] 
Use non-dashed form of Git commands

For consistency, use "git describe" rather than git-describe.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoUpdate headers Synergy-3.5a5
Wincent Colaiuta [Wed, 9 Jan 2008 19:04:47 +0000 (20:04 +0100)] 
Update headers

Update copyright years and trim some unnecessary whitespace.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoRemove braindead diff invocations
Wincent Colaiuta [Wed, 9 Jan 2008 19:01:33 +0000 (20:01 +0100)] 
Remove braindead diff invocations

Use the compare() helper function instead, and split it out into
Common.sh so all scripts can use it if they want.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoProduce longer release notes if --long switch passed
Wincent Colaiuta [Thu, 27 Dec 2007 14:14:04 +0000 (15:14 +0100)] 
Produce longer release notes if --long switch passed

Note also that we just use "git log --pretty=format" rather than piping
through "git shortlog".

There is a strange behavioural discrepancy here with newlines depending
on whether the script is run interactively or via Xcode; work around it
by just echo a blank line rather than trying to pass "\n".

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoModernize UpdateStringsFiles.sh
Wincent Colaiuta [Mon, 24 Dec 2007 18:10:23 +0000 (19:10 +0100)] 
Modernize UpdateStringsFiles.sh

Make some tweaks to UpdateStringsFiles.sh to make it more generally
suitable. In particular, the ability to specify separate source and
resources folders means that we can use this script in the Synergy
build process now (because the Synergy code base dates back a very
long way now and doesn't follow the standard locations which you
get when you set up a new project).

These changes basically make the UpdateStringsFile.sh script
redundant, so remove it.

I am still not entirely happy with this script -- it is now showing
its age -- despite the fact that it works. In the future will probably
do some more refactoring to clean this up and correctly distribute
responsibilities among this, the UpdateXibs.sh script, and possibly
others.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoCorrect spelling error in comment
Wincent Colaiuta [Sun, 23 Dec 2007 21:01:12 +0000 (22:01 +0100)] 
Correct spelling error in comment

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoBe more verbose
Wincent Colaiuta [Sun, 23 Dec 2007 20:00:19 +0000 (21:00 +0100)] 
Be more verbose

While trying to debug a failure case I noticed that it was possible for
the script to terminate early (due to the "set -e") but for no error
message to be printed to the standard error.

So be more verbose about what's happening, and install an exit trap to
draw attention to an unexpected early exit.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoAvoid stat calls
Wincent Colaiuta [Sun, 23 Dec 2007 19:09:14 +0000 (20:09 +0100)] 
Avoid stat calls

Shave off some lines and clean up the code a little by avoiding the stat
invocations and using the -nt and -ot test primaries instead.

Signed-off-by: Wincent Colaiuta <win@wincent.com>