mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Rake task to build website including source dist and binaries.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,6 @@
|
|||||||
*.o
|
*.o
|
||||||
*~
|
*~
|
||||||
|
|
||||||
build
|
|
||||||
jq
|
jq
|
||||||
jq.1
|
jq.1
|
||||||
|
|
||||||
@ -22,4 +21,5 @@ config.log
|
|||||||
config.status
|
config.status
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
config.h
|
config.h
|
||||||
Makefile
|
Makefile
|
||||||
|
jq-*.tar.gz
|
1
build/.gitignore
vendored
Normal file
1
build/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*
|
@ -75,7 +75,7 @@ $BINARIES = {
|
|||||||
|
|
||||||
$BINARIES.each do |name, args|
|
$BINARIES.each do |name, args|
|
||||||
file "../build/#{name}" do |t|
|
file "../build/#{name}" do |t|
|
||||||
sh "MAKEFLAGS=-j4 ../build/compile #{name} #{args}"
|
sh "MAKEFLAGS=-j4 ../scripts/crosscompile #{name} #{args}"
|
||||||
end
|
end
|
||||||
task :binaries => ["../build/#{name}"]
|
task :binaries => ["../build/#{name}"]
|
||||||
end
|
end
|
||||||
@ -139,7 +139,7 @@ end
|
|||||||
|
|
||||||
directory "output/download/source"
|
directory "output/download/source"
|
||||||
task :tarball => ["output/download/source"] do
|
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"
|
sh "cp ../jq-*.tar.gz output/download/source"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# e.g. $0 win32 --host=i686-w64-mingw32
|
# e.g. $0 win32 --host=i686-w64-mingw32
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cd `dirname "$0"`
|
cd `dirname "$0"`/../build
|
||||||
|
|
||||||
plat="$1"
|
plat="$1"
|
||||||
[ -z "$plat" ] && exit 1
|
[ -z "$plat" ] && exit 1
|
Reference in New Issue
Block a user