17 lines
471 B
Bash
Executable File
17 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
echo "Building Trashbox CGI scripts..."
|
|
|
|
echo "Building index.cgi..."
|
|
gcc -Wall -O2 -o index.cgi index.c -DBASE_WWW_PATH='"/home/romkazvo/www"' -DTEMPLATE_PATH='"/home/romkazvo/www/cgi-bin/template.html"'
|
|
|
|
echo "Building style.cgi..."
|
|
gcc -Wall -O2 -o style.cgi style.c -DCSS_PATH='"/home/romkazvo/www/cgi-bin/style.css"'
|
|
|
|
echo "Building status.cgi..."
|
|
gcc -Wall -O2 -o status.cgi status.c
|
|
|
|
echo "Setting permissions..."
|
|
chmod +x *.cgi
|
|
|
|
echo "Build complete"
|