Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Don't echo lines to the terminal in the post-link for aspell
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Mar 31, 2014
1 parent 53c3757 commit dcdb29c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aspell/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:


build:
number: 4
number: 5

test:
commands:
Expand Down
6 changes: 3 additions & 3 deletions aspell/post-link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function patch_strings_in_file() {
STRINGS=$(strings ${FILE} | grep ${PATTERN} | sort -u -r)

if [ "${STRINGS}" != "" ] ; then
echo "File '${FILE}' contain strings with '${PATTERN}' in them:"

for OLD_STRING in ${STRINGS} ; do
# Create the new string with a simple bash-replacement
Expand All @@ -26,12 +25,10 @@ function patch_strings_in_file() {
done

# Now, replace every occurrence of OLD_STRING with NEW_STRING
echo -n "Replacing ${OLD_STRING} with ${NEW_STRING}... "
hexdump -ve '1/1 "%.2X"' ${FILE} | \
sed "s/${OLD_STRING_HEX}/${NEW_STRING_HEX}/g" | \
xxd -r -p > ${FILE}.tmp
mv ${FILE}.tmp ${FILE}
echo "Done!"
else
echo "New string '${NEW_STRING}' is longer than old" \
"string '${OLD_STRING}'. Skipping."
Expand All @@ -51,6 +48,9 @@ fi
patch_strings_in_file "$PREFIX/lib/libaspell.dylib" "$PLACEHOLDER_PREFIX" "$PREFIX"
patch_strings_in_file "$PREFIX/lib/libaspell.15.dylib" "$PLACEHOLDER_PREFIX" "$PREFIX"

# Unfortunately, this can't detect if you actually did install a dictionary
# alongside aspell, as aspell would be a dependency of such a package and
# would be linked first.
if [ ! -e "$PREFIX/conda-meta/aspell-[!0123456789]*" ]; then
echo "Note: The aspell package does not come with any dictionaries. You should
install at least one dictionary, e.g., aspell-en." > "$PREFIX/.messages.txt"
Expand Down

0 comments on commit dcdb29c

Please sign in to comment.