130511.1.21 · 4a5405e4b824b9f935f3f398c53fb83b8d07a15c
Rake task to build website including source dist and binaries.
reading declarations
@@ -1,7 +1,6 @@ *.o *~ -build jq jq.1 @@ -22,4 +21,5 @@ config.log config.status autom4te.cache config.h-Makefile+Makefile+jq-*.tar.gz
@@ -0,0 +1 @@+*
build/compile
@@ -1,31 +0,0 @@-#!/bin/sh--# This script is used to cross-compile binaries for -# platforms other than the current one--# Usage: $0 <platformname> <configure options>-# <platformname> is arbitrary, it is the name-# of the directory which will be created to contain-# the output binaries.--# e.g. $0 win32 --host=i686-w64-mingw32--set -e-cd `dirname "$0"`--plat="$1"-[ -z "$plat" ] && exit 1-shift--[ -d "$plat" ] || mkdir "$plat"-rm -rf "$plat/tmp"-mkdir "$plat/tmp"-cd "$plat/tmp"-mkdir install_other-../../../configure \- --prefix="`pwd`/install_other" \- --bindir="`pwd`/.." \- "$@"-make install-binaries-cd ..-rm -rf tmp
docs/Rakefile
@@ -75,7 +75,7 @@ $BINARIES = { $BINARIES.each do |name, args| file "../build/#{name}" do |t|- sh "MAKEFLAGS=-j4 ../build/compile #{name} #{args}"+ sh "MAKEFLAGS=-j4 ../scripts/crosscompile #{name} #{args}" end task :binaries => ["../build/#{name}"] end@@ -139,7 +139,7 @@ end directory "output/download/source" task :tarball => ["output/download/source"] do- sh "cd ..; make dist"+ sh "cd ..; ./configure && make dist && make distclean" sh "cp ../jq-*.tar.gz output/download/source" end
@@ -0,0 +1,31 @@+#!/bin/sh++# This script is used to cross-compile binaries for +# platforms other than the current one++# Usage: $0 <platformname> <configure options>+# <platformname> is arbitrary, it is the name+# of the directory which will be created to contain+# the output binaries.++# e.g. $0 win32 --host=i686-w64-mingw32++set -e+cd `dirname "$0"`/../build++plat="$1"+[ -z "$plat" ] && exit 1+shift++[ -d "$plat" ] || mkdir "$plat"+rm -rf "$plat/tmp"+mkdir "$plat/tmp"+cd "$plat/tmp"+mkdir install_other+../../../configure \+ --prefix="`pwd`/install_other" \+ --bindir="`pwd`/.." \+ "$@"+make install-binaries+cd ..+rm -rf tmp