- removed the generation of symlinks from ".symlinks" files
svn path=/trunk/; revision=17794
This commit is contained in:
förälder
00116f72dc
incheckning
a1351b500a
|
@ -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'
|
||||
|
|
Laddar…
Referens i nytt ärende