makedist.midori: Dereference symlinks when copying
This commit is contained in:
parent
d152163957
commit
b68b092c51
1 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ dll_recursive ()
|
||||||
while [ "x`sha1sum - < $temp_file_new`" != "x`sha1sum - < $temp_file_old`" ]
|
while [ "x`sha1sum - < $temp_file_new`" != "x`sha1sum - < $temp_file_old`" ]
|
||||||
do
|
do
|
||||||
files=`cat $temp_file_new $temp_file_old | sort | uniq -u`
|
files=`cat $temp_file_new $temp_file_old | sort | uniq -u`
|
||||||
cp $temp_file_new $temp_file_old
|
cp -L $temp_file_new $temp_file_old
|
||||||
strings $files 2> /dev/null | grep \\.dll | cat - $temp_file_old | sort | uniq > $temp_file_new
|
strings $files 2> /dev/null | grep \\.dll | cat - $temp_file_old | sort | uniq > $temp_file_new
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ grab_files ()
|
||||||
pushd $root_dir > /dev/null
|
pushd $root_dir > /dev/null
|
||||||
shift
|
shift
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
find $dir "(" -name "$1" ")" -prune -exec mkdir -p $workdir/{} ";" -exec rmdir --ignore-fail-on-non-empty $workdir/{} ";" -exec cp -r {} $workdir/{} ";"
|
find $dir "(" -name "$1" ")" -prune -exec mkdir -p $workdir/{} ";" -exec rmdir --ignore-fail-on-non-empty $workdir/{} ";" -exec cp -Lr {} $workdir/{} ";"
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
@ -107,7 +107,7 @@ echo -n .
|
||||||
# copy auto generate dll list
|
# copy auto generate dll list
|
||||||
pushd $root_dir/bin > /dev/null
|
pushd $root_dir/bin > /dev/null
|
||||||
mkdir $workdir/bin
|
mkdir $workdir/bin
|
||||||
cp $files $workdir/bin
|
cp -L $files $workdir/bin
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
echo -n .
|
echo -n .
|
||||||
|
@ -161,7 +161,7 @@ popd > /dev/null
|
||||||
echo -n .
|
echo -n .
|
||||||
|
|
||||||
# copy doc files to root
|
# copy doc files to root
|
||||||
cp $workdir/share/doc/midori/{COPYING,AUTHORS} $workdir
|
cp -L $workdir/share/doc/midori/{COPYING,AUTHORS} $workdir
|
||||||
|
|
||||||
echo -n .
|
echo -n .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue