GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — objectbox-java/scripts/update-flatbuffers.sh at main · Alpha-Innovations-Studio/objectbox-java

Expand file tree

/

update-flatbuffers.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (16 loc) · 743 Bytes
/

update-flatbuffers.sh

Copy path

File metadata and controls

21 lines (16 loc) · 743 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -euo pipefail
# Expects FlatBuffers source files in the `../flatbuffers` directory,
# the Java library in `objectbox-java`, e.g. run this from the root of this repo.
script_dir=$(dirname "$(readlink -f "$0")")
cd "${script_dir}/.." # move to project root dir or exit on failure
echo "Running in directory: $(pwd)"
src="../flatbuffers/java/com/google/flatbuffers"
dest="objectbox-java/src/main/java/io/objectbox/flatbuffers"
echo "Copying flatbuffers Java sources"
rm -f ${dest}/*.java
cp -v ${src}/*.java ${dest}/
echo "Updating import statements of Java sources"
find "${dest}" -type f -name "*.java" \
-exec echo "Processing {}" \; \
-exec sed -i "s| com.google.flatbuffers| io.objectbox.flatbuffers|g" {} \;
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.