summaryrefslogblamecommitdiff
path: root/install.sh
blob: f2a88b9f16e0575976ebd447d760f36a2c7c800b (plain) (tree)
1
2
3
4
5
6





                          







                                                              

  
                         
 

                                          
                               
 
                             

                                
                            





                                     
#!/usr/bin/env sh

DESTINATION="${1}"

if [ -z "${DESTINATION}" ]
then
	printf "missing destination directory...\n"
	printf "\n"
	printf "Usage:\n"
	printf "    install.sh <directory>\n"
	printf "\n"
	printf "Installs the server to the given directory.\n"

	exit 1
fi

mkdir -p "${DESTINATION}"

cp "apple-touch-icon.png" "${DESTINATION}"
cp "favicon.ico" "${DESTINATION}"
cp "index.php" "${DESTINATION}"

cp -r "font" "${DESTINATION}"
cp -r "image" "${DESTINATION}"
cp -r "include" "${DESTINATION}"
cp -r "svg" "${DESTINATION}"

mkdir -p "${DESTINATION}/css"
mkdir -p "${DESTINATION}/js"

cp "css/"*".css" "${DESTINATION}/css"
cp "js/"*".js" "${DESTINATION}/js"