File: build.sh

package info (click to toggle)
gcli 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 25,411; sh: 580; makefile: 509; yacc: 261; lex: 59
file content (29 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# This script builds the website into a temporary directory
#

cd $(dirname $0)

# Build the tutorial
(
	cd tutorial
	./gen.sh
)

# Make a dist directory and copy over files
DISTDIR=$(mktemp -d)
mkdir -p ${DISTDIR}/tutorial
mkdir -p ${DISTDIR}/assets

cp -p index.html ${DISTDIR}/
cp -p \
	tutorial/0*.html \
	tutorial/index.html \
	${DISTDIR}/tutorial

cp -p \
	../screenshot.png \
	${DISTDIR}/assets/screenshot.png

echo "${DISTDIR}"