Browse Source

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

svn path=/trunk/; revision=17794
tags/stw2018
nicoulas 9 years ago
parent
commit
a1351b500a
1 changed files with 11 additions and 8 deletions
  1. 11
    8
      tools/build.sh

+ 11
- 8
tools/build.sh View File

@@ -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…
Cancel
Save