50 lines
1.3 KiB
Bash
Executable File
50 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
echo "Placing structure..."
|
|
mkdir -p live
|
|
echo " Copying PHP..."
|
|
cp -pfv *.php live/
|
|
echo " Copying javascript..."
|
|
mkdir -p live/javascript
|
|
cp -pfv javascript/*.js live/javascript/
|
|
echo " Copying CSS..."
|
|
mkdir -p live/css
|
|
cp -pfv css/*.css live/css/
|
|
echo " Copying fonts..."
|
|
mkdir -p live/fonts
|
|
cp -pfv fonts/* live/fonts/
|
|
echo " Copying images..."
|
|
mkdir -p live/pix
|
|
cp -pfv pix/* live/pix/
|
|
echo "Building kettext..."
|
|
../kettext/kettext.pl menu.ktx > live/menu.html
|
|
../kettext/kettext.pl front.ktx > live/front.html
|
|
../kettext/kettext.pl proclib.ktx > live/proclib.html
|
|
../kettext/kettext.pl TODO.ktx --header.depth=2 > live/TODO.html
|
|
echo "Building aphorism..."
|
|
mkdir -p live/aphorism
|
|
for f in aphorism/*
|
|
do
|
|
html=`echo $f | sed 's/\(.*\.\)ktx/\1html/'`;
|
|
../kettext/kettext.pl $f --version.none > live/$html
|
|
done
|
|
echo "Building dox..."
|
|
../kettext/kettext.pl dox.ktx > live/dox.html
|
|
mkdir -p live/dox
|
|
for f in dox/*
|
|
do
|
|
html=`echo $f | sed 's/\(.*\.\)ktx/\1html/'`;
|
|
../kettext/kettext.pl $f --version.none --header.depth=2 > live/$html
|
|
done
|
|
|
|
echo "Copying plans..."
|
|
../kettext/kettext.pl plans.ktx > live/plans.html
|
|
mkdir -p live/plans
|
|
for f in ~/.plans/*
|
|
do
|
|
#html=`echo $f | sed 's/\(.*\.\)plan/\1html/'`;
|
|
#base=`basename $html`;
|
|
base=`basename $f`;
|
|
cp $f live/plans/$base
|
|
#../kettext/kettext.pl $f --version.none > live/plans/$base
|
|
done
|