-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclone_and_rebrand.sh
More file actions
43 lines (34 loc) · 997 Bytes
/
clone_and_rebrand.sh
File metadata and controls
43 lines (34 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Exit on error
set -e
SRC_DIR="$(pwd)"
PARENT_DIR="$(dirname "$SRC_DIR")"
NEW_DIR="$PARENT_DIR/mythral"
# 1. Copy the directory
if [ -d "$NEW_DIR" ]; then
echo "[INFO] Directory 'mythral' already exists. Skipping copy."
else
echo "[INFO] Copying project to 'mythral'..."
cp -r "$SRC_DIR" "$NEW_DIR"
fi
cd "$NEW_DIR"
# 2. Initialize a new git repo if not already present
if [ -d ".git" ]; then
echo "[INFO] Git repo already initialized in 'mythral'."
else
echo "[INFO] Initializing new git repository..."
git init
git add .
git commit -m "Initial commit: pre-rebranding"
fi
# 3. Print instructions for next steps
cat <<EOM
[INFO] Project cloned to 'mythral' and git repo initialized.
Next steps:
1. cd "$NEW_DIR"
2. Run your rebranding script (e.g., python3 rebrand_apply.py)
3. git add .
4. git commit -m "Apply Mythral and DubPrime rebranding"
5. (Optional) git remote add origin <your-new-repo-url>
6. (Optional) git push -u origin main
EOM