shadow / convert_all.sh
garywelz's picture
Initial commit: Shadow of Lillya project (Markdown files only, no binaries)
73e99c6
raw
history blame contribute delete
581 Bytes
#!/bin/bash
# Convert All Word Documents to Markdown
# Usage: ./convert_all.sh [input_directory] [output_directory]
INPUT_DIR="${1:-.}"
OUTPUT_DIR="${2:-manuscripts}"
echo "πŸ“š Converting Word documents to Markdown..."
echo "Input directory: $INPUT_DIR"
echo "Output directory: $OUTPUT_DIR"
echo ""
# Create output directory if it doesn't exist
mkdir -p "$OUTPUT_DIR"
# Convert all .doc and .docx files
python3 convert_docs.py "$INPUT_DIR" -o "$OUTPUT_DIR" -r
echo ""
echo "βœ… Conversion complete!"
echo "πŸ“ Check the '$OUTPUT_DIR' directory for your Markdown files."