On Mon, Jul 28, 2014 at 9:29 PM, Stephan Beal <sgb...@googlemail.com> wrote:
> BTW: that offer's not just for Richard - send your build option requests > here and i'll get to them as time allows. It takes almost half an hour to > build after a reconfigure/clean, so i can't do more than a few a day, > though. > Necessity being the mother of invention... maybe this will be useful to someone else: #!/bin/bash # A quick hack to build multiple configurations of fossil binaries. # See the very end of this file for the configurations. function die(){ local rc=$1 shift echo "$@" >&2 exit $rc } COMMON_CONFIG_FLAGS="--static" function buildIt(){ local name=$1 shift local opt="$COMMON_CONFIG_FLAGS $@" echo "Building configuration [${name}]: ${opt}" local zip="fossil-$(uname -i)-$(uname -s)-${name}.zip" rm -f ${zip} make clean >/dev/null echo "Start time:" $(date) ./configure $opt >/dev/null \ || die $? "configure failed. Options: ${opt}" make >/dev/null || die $? "make failed" echo "End time:" $(date) echo "Creating zip: ${zip}" zip "${zip}" fossil || die $? "zip failed" ls -la "${zip}" } while read line; do buildIt ${line%%=*} ${line#*=} done <<EOF vanilla=--with-openssl=none json-nossl=--with-openssl=none --json EOF Seems to work: (stderr output (compiler warnings) elided here) [stephan@host:~/cvs/fossil/fossil]$ ./buildMultipleConfigs.sh 2>/dev/null Building configuration [vanilla]: --static --with-openssl=none Start time: Mon Jul 28 22:56:52 CEST 2014 End time: Mon Jul 28 22:57:45 CEST 2014 Creating zip: fossil-x86_64-Linux-vanilla.zip adding: fossil (deflated 63%) -rw-r--r-- 1 stephan stephan 2921111 Jul 28 22:57 fossil-x86_64-Linux-vanilla.zip Building configuration [json-nossl]: --static --with-openssl=none --json Start time: Mon Jul 28 22:57:45 CEST 2014 End time: Mon Jul 28 22:58:43 CEST 2014 Creating zip: fossil-x86_64-Linux-json-nossl.zip adding: fossil (deflated 63%) -rw-r--r-- 1 stephan stephan 3166516 Jul 28 22:58 fossil-x86_64-Linux-json-nossl.zip -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users