build-script

How to Add Xcode Bot Integration Number Into Build Script

落花浮王杯 提交于 2019-12-20 09:58:11
问题 I'm creating an iPad application with a Settings.bundle file. I'm writing build scripts to display the application version number and the xcode bot integration number (not the bundle build number). I've searched the web and couldn't find any solution. Here's what I got yet: -- Add the app version number cd $PROJECT_DIR cd "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app" RELEASE_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) /usr/libexec/PlistBuddy -c "Set

How do I configure the SVN HTTP proxy from the command line?

旧城冷巷雨未停 提交于 2019-12-19 05:24:43
问题 I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit behind a proxy, so I need to configure SVN to use the proxy. Several of the options that come immediately to mind are unpalatable for various reasons: I could edit the ~/.subversion/servers file manually, but I would far rather keep the build process

Build script to copy files from various source folder to various destination folder

浪子不回头ぞ 提交于 2019-12-11 22:13:53
问题 The basic requirement is to copy the various files and folders from different solution/project directories to the single build_output folder(/subfolders). Currently, I am doing this operation using the Robocopy commands. The only issue is my script is too long just using multiple Robocopy commands. <Copy SourceFiles="$(Docs)\Manual.pdf" DestinationFolder="$(BuildPath)\Help"/> <RoboCopy Source="$(Web1)" Destination="$(BuildPath)" Files="*.aspx" Options="/E"/> <RoboCopy Source="$(Web1)\Images"

Berkeley DB for iPhone

邮差的信 提交于 2019-12-08 10:25:04
问题 I had tried to create the library for iphone OS 4, but was getting errors. Here are my build scripts with reference to Berkeley DB Installation guide. export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS4.2.sdk export COMPILER_iOS=${DEV_iOS}/usr/bin export CC=${COMPILER_iOS}/gcc export CXX=${COMPILER_iOS}/g++ export LDFLAGS="-arch armv6 -pipe -Os -gdwarf-2 -no-cpp-precomp -mthumb -isysroot ${SDK_iOS}" export CFFLAGS=${LDFLAGS} export CXXFLAGS

Real Hierarchical Builds with SCons?

旧巷老猫 提交于 2019-12-03 11:38:38
So I've read the questions on here about hierarchical builds like: Creating a Hierarchical Build with SCons I want to do real hierarchical construction of two standalone repos that both use scons that I set up as sub-repos using mercurial. Below is the file layout that illustrates what I want to do. Desired Layout: project_root/ (new project that builds bar app using the libfoo built from source) libfoo_subrepo/ (standalone project repo from bitbucket) src/ SConscript libfoo.c libfoo.h test/ SConscript test_foo.c SConstruct barapp_subrepo/ (standalone project repo from bitbucket that uses

How do I configure the SVN HTTP proxy from the command line?

≯℡__Kan透↙ 提交于 2019-12-01 03:11:05
I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit behind a proxy, so I need to configure SVN to use the proxy. Several of the options that come immediately to mind are unpalatable for various reasons: I could edit the ~/.subversion/servers file manually, but I would far rather keep the build process as self-contained and as automated as possible. Alternatively, I could "proxy" the various public

Internet Explorer, Closure Compiler and Trailing Commas

蓝咒 提交于 2019-11-29 10:52:26
I'm using html5boilerplate build script and when minifying the scripts (which uses Google Closure Compiler) I'm getting this error -js.all.minify: [echo] Minifying scripts [copy] Copying 3 files to /Users/Username/Desktop/Web/intermediate/js [apply] /Users/Juan/Desktop/Web/js/plugins.js:117: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. [apply] }, { duration: 727 }) [apply] ^ But the code DOES work in IE 8 if run uncompiled. This is the code anim1.animate({ 'left': '+=32px',

Automatically setting jobs (-j) flag for a multicore machine?

橙三吉。 提交于 2019-11-28 16:48:20
I have a Makefile on a machine that has a ton of cores in it, but I always seem to forget to write -jX when compiling my project and it takes way longer than it should. Is there some way I can set the -j flag through an environment variable or some other persistent config file so that make will automatically execute multiple jobs in parallel on this machine? It appears that the MAKEFLAGS environment variable can pass flags that are part of every make run (at least for GNU make). I haven't had much luck with this myself, but it might be possible to use -l rather than -j to automatically run as

Internet Explorer, Closure Compiler and Trailing Commas

僤鯓⒐⒋嵵緔 提交于 2019-11-28 04:34:46
问题 I'm using html5boilerplate build script and when minifying the scripts (which uses Google Closure Compiler) I'm getting this error -js.all.minify: [echo] Minifying scripts [copy] Copying 3 files to /Users/Username/Desktop/Web/intermediate/js [apply] /Users/Juan/Desktop/Web/js/plugins.js:117: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. [apply] }, { duration: 727 }) [apply] ^ But

Automatically setting jobs (-j) flag for a multicore machine?

霸气de小男生 提交于 2019-11-27 19:58:58
问题 I have a Makefile on a machine that has a ton of cores in it, but I always seem to forget to write -jX when compiling my project and it takes way longer than it should. Is there some way I can set the -j flag through an environment variable or some other persistent config file so that make will automatically execute multiple jobs in parallel on this machine? 回答1: It appears that the MAKEFLAGS environment variable can pass flags that are part of every make run (at least for GNU make). I haven