Skip to content

Commit 81ed41c

Browse files
committed
chore: update compile script
1 parent 037e023 commit 81ed41c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/compile.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
77
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
88

99
# Files to compile (in dependency order)
10-
FILES=("netlinx-mode-font-lock.el" "netlinx-mode.el")
10+
FILES=("netlinx-mode-font-lock.el" "netlinx-mode-indent.el" "netlinx-mode-navigation.el" "netlinx-mode.el")
1111

1212
# Build absolute paths
1313
ABSOLUTE_FILE_PATHS=()
@@ -19,6 +19,12 @@ echo "Project root: $PROJECT_ROOT"
1919
echo "Files to compile: ${FILES[*]}"
2020
echo ""
2121

22+
# Clean up old byte-compiled files
23+
if compgen -G "$PROJECT_ROOT/*.elc" >/dev/null; then
24+
echo "Cleaning up old byte-compiled files..."
25+
rm -f "$PROJECT_ROOT"/*.elc
26+
fi
27+
2228
# Check if all files exist before attempting to compile
2329
for file in "${ABSOLUTE_FILE_PATHS[@]}"; do
2430
if [ ! -f "$file" ]; then

0 commit comments

Comments
 (0)