mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
* converted misc/target/functions.in whitespace to tabs
git-svn-id: https://svn.exactcode.de/t2/trunk@65815 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
This commit is contained in:
parent
7b164bc785
commit
571714de7c
@ -35,11 +35,10 @@ copy_from_source () {
|
||||
# apply patches, change owner:group or permissions
|
||||
# from to
|
||||
copy_and_parse_from_source () {
|
||||
# the sed is a work around for a find issue, outputting empty rows
|
||||
# in some versions ...
|
||||
find $1 -name '.svn' -prune -o -printf "%P\n" | sed '/^$/d' | sort |
|
||||
# the sed is a work around for a find issue, outputting empty rows
|
||||
# in some versions ...
|
||||
find $1 -name '.svn' -prune -o -printf "%P\n" | sed '/^$/d' | sort |
|
||||
while read file; do
|
||||
|
||||
if [ -h $1/$file ]; then
|
||||
#echo "Symlink: $file"
|
||||
cp -afv $1/$file $2/$file
|
||||
@ -84,19 +83,19 @@ copy_and_parse_from_source () {
|
||||
cp -afv $1/$file $2/$file
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
# link indentical files to save space
|
||||
link_identical_files() {
|
||||
(
|
||||
while read ck fn; do
|
||||
if [ "$oldck" = "$ck" -a -s $fn ]; then
|
||||
echo "\"$fn -> $oldfn\""
|
||||
rm $fn; ln $oldfn $fn
|
||||
else
|
||||
oldck=$ck; oldfn=$fn
|
||||
fi
|
||||
if [ "$oldck" = "$ck" -a -s $fn ]; then
|
||||
echo "\"$fn -> $oldfn\""
|
||||
rm $fn; ln $oldfn $fn
|
||||
else
|
||||
oldck=$ck; oldfn=$fn
|
||||
fi
|
||||
done < <( find -type f | xargs md5sum | sort )
|
||||
) | ( x=`wc -l`; echo "$x links created." )
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user