mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 18:15:59 +00:00
12 lines
540 B
Bash
Executable File
12 lines
540 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )" >/dev/null && pwd )"
|
|
|
|
# Rename all com.linkedin.* to com.linkedin.pegasus2avro.*, except for com.linkedin.avro2pegasus.*
|
|
find $SCRIPT_ROOT/../mxe-schemas/src/renamed -type f -print0 | \
|
|
xargs -0 perl -pi -e 's/com\.linkedin\.(?!avro2pegasus)/com\.linkedin\.pegasus2avro\./g'
|
|
|
|
# Rename com.linkedin.avro2pegasus.* to com.linkedin.*
|
|
find $SCRIPT_ROOT/../mxe-schemas/src/renamed -type f -print0 | \
|
|
xargs -0 perl -pi -e 's/com\.linkedin\.avro2pegasus\./com\.linkedin\./g'
|