Subversion Repositories SvarDOS

Rev

Rev 852 | Rev 862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 852 Rev 854
Line 6... Line 6...
6
#
6
#
7
# This script builds floppy and CD images. It should be executed each time that
7
# This script builds floppy and CD images. It should be executed each time that
8
# a CORE package has been modified or the build script changed. This is usually
8
# a CORE package has been modified or the build script changed. This is usually
9
# done by the cron.sh script, itself called by a cron job.
9
# done by the cron.sh script, itself called by a cron job.
10
#
10
#
11
# usage: ./build.sh outputdir [noclean] > logfile
11
# usage: ./build.sh outputdir buildver [noclean] > logfile
12
#
12
#
13
 
13
 
14
### parameters block starts here ############################################
14
### parameters block starts here ############################################
15
 
15
 
16
CURDATE=`date +%Y%m%d`
-
 
17
REPOROOT=`realpath ./packages`
16
REPOROOT=`realpath ./packages`
18
CUSTFILES=`realpath ./files`
17
CUSTFILES=`realpath ./files`
19
 
18
 
20
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
19
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
21
 
20
 
22
### parameters block ends here ##############################################
21
### parameters block ends here ##############################################
23
 
22
 
24
# look for mandatory output dir
23
# look for mandatory output dir and build id
25
if [ "x$1" == "x" ] ; then
24
if [ "x$2" == "x" ] ; then
26
  echo "usage: build.sh outputdir [noclean] > logfile"
25
  echo "usage: build.sh outputdir buildver [noclean]"
27
  exit 1
26
  exit 1
28
fi
27
fi
-
 
28
CURDATE="$2"
29
PUBDIR=`realpath "$1"`/$CURDATE
29
PUBDIR=`realpath "$1"`
30
 
30
 
31
CDROOT="$PUBDIR/tmp_cdroot.build"
31
CDROOT="$PUBDIR/tmp_cdroot.build"
32
FLOPROOT="$PUBDIR/tmp_floproot.build"
32
FLOPROOT="$PUBDIR/tmp_floproot.build"
33
 
33
 
34
 
34
 
Line 126... Line 126...
126
echo "###############################################################################"
126
echo "###############################################################################"
127
echo "dest dir: $PUBDIR"
127
echo "dest dir: $PUBDIR"
128
echo "current time is `date` and it's a beautiful day somewhere in the world"
128
echo "current time is `date` and it's a beautiful day somewhere in the world"
129
echo
129
echo
130
 
130
 
131
# remove dest dir if it exists already, then recreate it empty
-
 
132
rm -rf "$PUBDIR"
-
 
133
mkdir "$PUBDIR"
-
 
134
 
-
 
135
mkdir "$CDROOT"
131
mkdir "$CDROOT"
136
mkdir "$FLOPROOT"
132
mkdir "$FLOPROOT"
137
 
133
 
138
# add CORE packages to CDROOT + create the list of packages on floppy
134
# add CORE packages to CDROOT + create the list of packages on floppy
139
for pkg in $COREPKGS ; do
135
for pkg in $COREPKGS ; do