瀏覽代碼

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

svn path=/trunk/; revision=17794
pull/8/head
nicoulas 10 年之前
父節點
當前提交
a1351b500a
共有 1 個文件被更改,包括 11 次插入8 次删除
  1. +11
    -8
      tools/build.sh

+ 11
- 8
tools/build.sh 查看文件

@@ -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'


Loading…
取消
儲存