parent
1c53587e3f
commit
8ca0ac6f3e
@ -0,0 +1 @@
|
||||
01762693e959847b4335cc0e4da3fea042465b7f SOURCES/fdupes-2.3.2.tar.gz
|
@ -1 +1 @@
|
||||
/fdupes-*.tar.gz
|
||||
SOURCES/fdupes-2.3.2.tar.gz
|
||||
|
@ -0,0 +1,21 @@
|
||||
%fdupes(s) \
|
||||
_target=""; \
|
||||
_symlinks=0; \
|
||||
%{-s:_symlinks=1;} \
|
||||
fdupes -q -n -r -p %1 | \
|
||||
while read _file; do \
|
||||
if test -z "$_target" ; then \
|
||||
_target="$_file"; \
|
||||
else \
|
||||
if test -z "$_file" ; then \
|
||||
_target=""; \
|
||||
continue ; \
|
||||
fi ; \
|
||||
if test "$_symlinks" = 1; then \
|
||||
ln -sf "${_target#%{buildroot}}" "$_file"; \
|
||||
else \
|
||||
ln -f "$_target" "$_file"; \
|
||||
fi ;\
|
||||
fi ; \
|
||||
done \
|
||||
%{nil}
|
Loading…
Reference in new issue