Subversion Repositories SvarDOS

Rev

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

Rev 838 Rev 847
Line 2... Line 2...
2
#
2
#
3
# SvarDOS build script
3
# SvarDOS build script
4
# http://svardos.org
4
# http://svardos.org
5
# Copyright (C) 2016-2022 Mateusz Viste
5
# Copyright (C) 2016-2022 Mateusz Viste
6
#
6
#
7
# This script generates the SvarDOS repository index and builds floppy and CD
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. Before running
-
 
9
# it looks for the presence of a /tmp/svardos_repo_changed.flag and stops if
8
# images. It should be executed each time that a CORE package has been
10
# no such flag exists. This flag is expected to be created by an svn
9
# modified, added or removed.
11
# post-commit hook when an important svn change is detected.
10
#
12
#
11
# usage: ./build.sh outputdir [noclean]
13
# usage: ./build.sh outputdir [noclean] > logfile
12
#
14
#
13
 
15
 
14
### parameters block starts here ############################################
16
### parameters block starts here ############################################
15
 
17
 
16
CURDATE=`date +%Y%m%d`
18
CURDATE=`date +%Y%m%d`
Line 24... Line 26...
24
# look for mandatory output dir
26
# look for mandatory output dir
25
if [ "x$1" == "x" ] ; then
27
if [ "x$1" == "x" ] ; then
26
  echo "usage: build.sh outputdir [noclean] > logfile"
28
  echo "usage: build.sh outputdir [noclean] > logfile"
27
  exit 1
29
  exit 1
28
fi
30
fi
29
PUBDIR=`realpath "$1"`/$CURDATE.staging
31
PUBDIR=`realpath "$1"`/$CURDATE
30
 
32
 
31
CDROOT="$PUBDIR/tmp_cdroot.build"
33
CDROOT="$PUBDIR/tmp_cdroot.build"
32
FLOPROOT="$PUBDIR/tmp_floproot.build"
34
FLOPROOT="$PUBDIR/tmp_floproot.build"
33
 
35
 
34
 
36
 
Line 124... Line 126...
124
echo "###############################################################################"
126
echo "###############################################################################"
125
echo "dest dir: $PUBDIR"
127
echo "dest dir: $PUBDIR"
126
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"
127
echo
129
echo
128
 
130
 
-
 
131
# remove dest dir if it exists already, then recreate it empty
-
 
132
rm -rf "$PUBDIR"
129
mkdir "$PUBDIR"
133
mkdir "$PUBDIR"
-
 
134
 
130
mkdir "$CDROOT"
135
mkdir "$CDROOT"
131
mkdir "$FLOPROOT"
136
mkdir "$FLOPROOT"
132
 
137
 
133
# add CORE packages to CDROOT + create the list of packages on floppy
138
# add CORE packages to CDROOT + create the list of packages on floppy
134
for pkg in $COREPKGS ; do
139
for pkg in $COREPKGS ; do