File: genDVD

package info (click to toggle)
fauhdlc 20180504-3.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,064 kB
  • sloc: cpp: 23,188; ansic: 6,077; yacc: 3,764; lex: 763; makefile: 605; python: 412; xml: 403; sh: 61
file content (32 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download | duplicates (7)
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
30
31
32
#!/bin/sh

date=`date +%Y-%m-%d`

dir="fauhdlc-${date}"
iso="fauhdlc-${date}.iso"

if [ -d ${dir} ] ; then
	echo "${dir}: exists already" 1>&2
	exit 1
fi
if [ -f ${iso} ] ; then
	echo "${iso}: exists already" 1>&2
	exit 1
fi

mkdir ${dir}
cd ${dir}

#
# copy fauhdlc source repository
#
cp -a /proj/fauhdlc fauhdlc.repository

cd ..

#
# generate iso image
#
mkisofs -r -T -v -o ${iso} ${dir}

rm -rf ${dir}