forked from kiss-community/repo
rsync: Remove perl dependency. Thanks @E5ten
This commit is contained in:
parent
3967838264
commit
e7f7398ee3
@ -2,9 +2,12 @@
|
|||||||
|
|
||||||
export CFLAGS="-static $CFLAGS"
|
export CFLAGS="-static $CFLAGS"
|
||||||
|
|
||||||
|
sed -i 's/perl/awk -f/;s/mkproto.pl/mkproto.awk/' Makefile.in
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-included-popt
|
--with-included-popt \
|
||||||
|
--without-included-zlib
|
||||||
|
|
||||||
make
|
make
|
||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
@ -1 +1,2 @@
|
|||||||
55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0 rsync-3.1.3.tar.gz
|
55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0 rsync-3.1.3.tar.gz
|
||||||
|
301240aecba5b8fbda8310c841ef61e3c1f312a55378f6079f8d65ae1bd811f2 mkproto.awk
|
||||||
|
@ -1,2 +1 @@
|
|||||||
perl make
|
|
||||||
zlib make
|
zlib make
|
||||||
|
39
core/rsync/files/mkproto.awk
Normal file
39
core/rsync/files/mkproto.awk
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#!/usr/bin/awk -f
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
|
||||||
|
protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
inheader {
|
||||||
|
protos = protos "\n" ((inheader = /\)[ \t]*$/ ? 0 : 1) ? $0 : $0 ";")
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
/^FN_(LOCAL|GLOBAL)_[^(]+\([^,()]+/ {
|
||||||
|
local = /^FN_LOCAL/
|
||||||
|
gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "")
|
||||||
|
sub(/^BOOL\(/, "BOOL ")
|
||||||
|
sub(/^CHAR\(/, "char ")
|
||||||
|
sub(/^INTEGER\(/, "int ")
|
||||||
|
sub(/^STRING\(/, "char *")
|
||||||
|
protos = protos "\n" $0 (local ? "(int module_id);" : "(void);")
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next }
|
||||||
|
|
||||||
|
/\(.*\)[ \t]*$/ {
|
||||||
|
protos = protos "\n" $0 ";"
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
/\(/ {
|
||||||
|
inheader = 1
|
||||||
|
protos = protos "\n" $0
|
||||||
|
}
|
||||||
|
|
||||||
|
END {
|
||||||
|
if (old_protos != protos) print protos > "proto.h"
|
||||||
|
print "" > "proto.h-tstamp"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz
|
https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz
|
||||||
|
files/mkproto.awk
|
||||||
|
Loading…
Reference in New Issue
Block a user