Skip to content

Commit 3776d1c

Browse files
committed
add instructions for renames after forking
1 parent 3e7e36c commit 3776d1c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,23 @@ pnpm run dev
191191

192192
The (minimal) web application will be accessible at: http://localhost:5173
193193
The api workbench will be accessible at: http://localhost:5174
194+
195+
## 4 Forking
196+
197+
The following linux commands can be used to rename "protoapp" to "myproject" in a fork
198+
of this repo:
199+
200+
```
201+
git mv adl/{protoapp,myproject}
202+
git mv rust/adl/src/gen/{protoapp,myproject}
203+
git mv rust/server/src/bin/{protoapp,myproject}-server.rs
204+
git mv rust/server/src/bin/{protoapp,myproject}-tools.rs
205+
git mv ts/adl/src/{protoapp,myproject}
206+
sed -i -e 's|protoapp|myproject|g' $(git ls-files)
207+
sed -i -e 's|Protoapp|MyProject|g' $(git ls-files)
208+
sed -i -e 's|PROTOAPP|MYPROJECT|g' $(git ls-files)
209+
deno task genadl
210+
```
211+
212+
macos sed doesn't support multi file in place updates, so an alternative tool will
213+
be required.

ts/ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const App: React.FC = () => {
106106

107107
return (
108108
<div>
109-
<h1>ProtoApp</h1>
109+
<h1>Protoapp</h1>
110110

111111
{accessToken === null ?
112112
<form onSubmit={handleLogin}>

0 commit comments

Comments
 (0)