ref: e58688c09b76f097aa011af2cae0d25773817f09
parent: 1baea408e225ab4a2c01f0204384eee55e6afd06
author: yenatch <yenatch@gmail.com>
date: Tue Jun 5 03:22:25 EDT 2018
sort_symfile: don't need to use sort -o with a temp file
--- a/tools/sort_symfile.sh
+++ b/tools/sort_symfile.sh
@@ -8,6 +8,6 @@
-e "s/^00:[C-D]/4_WRAM0@&/g" \
-e "s/^..:[D-D]/5_WRAMX@&/g" \
$1 \
-| sort -o $TEMP_FILE
-sed -e "s/^.*@//g" $TEMP_FILE > $1
-rm $TEMP_FILE
+| sort \
+| sed -e "s/^.*@//g" > $TEMP_FILE
+mv $TEMP_FILE $1