- removed the generation of symlinks from ".symlinks" files

svn path=/trunk/; revision=17794
这个提交包含在:
nicoulas 2010-10-20 08:39:08 +00:00
父节点 00116f72dc
当前提交 a1351b500a
共有 1 个文件被更改,包括 11 次插入8 次删除

查看文件

@ -129,15 +129,17 @@ for target in ${TMP}/*; do
done
# -----------------------------------------------------------------------------
echo "$(date) Creating symlinks."
#echo "$(date) Creating symlinks."
# -----------------------------------------------------------------------------
for f in $(find ${TMP} -name .symlinks); do
cd $(dirname $f)
cat $f | while read source destination; do
ln -sf ${source} ${destination} 2>/dev/null
done
done
## there are no ".symlinks" files anymore
#for f in $(find ${TMP} -name .symlinks); do
# cd $(dirname $f)
# cat $f | while read source destination; do
# ln -sf ${source} ${destination} 2>/dev/null
# done
#done
## TODO: should this next line be commented?
cd ${SOURCE}
# -----------------------------------------------------------------------------
@ -145,7 +147,8 @@ echo "$(date) Obfuscating email addresses."
# -----------------------------------------------------------------------------
# This replaces all '@' in all html files with '@'. We use '-type f'
# because we want to exclude symlinks. Because 'sed -i' is a very expensive
# because we want to exclude symlinks (TODO: is -type f still useful now that
# we don't have .symlinks anymore?). Because 'sed -i' is a very expensive
# operation, even if there is no replacement done anyway, we first limit the
# files to operate on to those files that actually contain an '@'.
find ${TMP} -type f -name "*.html" | xargs grep -l '@' | xargs sed -i 's/@/\@/g'