dump-syms.sh 350 B

12345678910111213141516171819
  1. #!/bin/sh
  2. DUMP_SYMS=$1
  3. COMPRESS=$2
  4. SOURCE=$3
  5. TARGET=$4
  6. echo $SOURCE
  7. DSYM_ARG=""
  8. DSYM_FILE=""
  9. BASESOURCE=$(basename "$SOURCE")
  10. if [ -e "$BASESOURCE.dSYM" ]; then
  11. DSYM_ARG="-g"
  12. DSYM_FILE="$BASESOURCE.dSYM"
  13. fi
  14. echo $DUMP_SYMS $DSYM_ARG $DSYM_FILE $SOURCE | $COMPRESS > $TARGET
  15. $DUMP_SYMS $DSYM_ARG "$DSYM_FILE" "$SOURCE" | $COMPRESS > "$TARGET"