Subversion Repositories SvarDOS

Rev

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

Rev 189 Rev 192
Line 14... Line 14...
14
PKGDIR=`realpath ./packages`
14
PKGDIR=`realpath ./packages`
15
REPOROOT=`realpath ./website/repo`
15
REPOROOT=`realpath ./website/repo`
16
BUILDIDX=`realpath ./buildidx/buildidx`
16
BUILDIDX=`realpath ./buildidx/buildidx`
17
PUBDIR=`realpath ./website/download`
17
PUBDIR=`realpath ./website/download`
18
CDROOT=`realpath ./cdroot`
18
CDROOT=`realpath ./cdroot`
-
 
19
FLOPROOT=`realpath ./floproot`
19
CUSTFILES=`realpath ./files`
20
CUSTFILES=`realpath ./files`
20
 
21
 
21
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
22
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
22
 
23
 
23
### parameters block ends here ##############################################
24
### parameters block ends here ##############################################
Line 46... Line 47...
46
 
47
 
47
# abort if anything fails
48
# abort if anything fails
48
set -e
49
set -e
49
 
50
 
50
 
51
 
-
 
52
# list of packages to be part of CORE
-
 
53
COREPKGS=( "attrib" "chkdsk" "choice" "command" "cpidos" "ctmouse" "deltree" "devload" "diskcopy" "display" "dosfsck" "edit" "fc" "fdapm" "fdisk" "fdnpkg" "format" "himemx" "kernel" "keyb" "keyb_lay" "label" "mem" "mode" "more" "move" "shsucdx" "sort" "tree" "undelete" "xcopy" "udvd2" )
-
 
54
 
-
 
55
 
-
 
56
 
51
# function that builds the packages repository
57
# function that builds the packages repository
52
function dorepo {
58
function dorepo {
53
  # copy all zip files to the web repo
59
  # copy all zip files to the web repo
54
  cp "$PKGDIR"/* $REPOROOT/
60
  cp "$PKGDIR"/* $REPOROOT/
55
  # now strip the sources from repo versions
61
  # now strip the sources from repo versions
Line 71... Line 77...
71
 
77
 
72
# remember where I am, so I can get back here once all is done
78
# remember where I am, so I can get back here once all is done
73
origdir=`pwd`
79
origdir=`pwd`
74
 
80
 
75
mkdir "$CDROOT"
81
mkdir "$CDROOT"
76
 
-
 
77
# build the boot (install) floppy image first
-
 
78
cp $CUSTFILES/bootmini.img $CDROOT/boot.img
-
 
79
export MTOOLS_NO_VFAT=1
-
 
80
mcopy -sQm -i "$CDROOT/boot.img" $CUSTFILES/floppy/* ::/
-
 
81
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
82
 
-
 
83
# link CORE packages to CDROOT
-
 
84
mkdir -p "$CDROOT/CORE"
82
mkdir "$FLOPROOT"
85
cp "$REPOROOT/udvd2.zip" "$CDROOT/CORE/"
-
 
86
cp "$REPOROOT/append.zip" "$CDROOT/CORE/"
-
 
87
cp "$REPOROOT/assign.zip" "$CDROOT/CORE/"
-
 
88
cp "$REPOROOT/attrib.zip" "$CDROOT/CORE/"
-
 
89
cp "$REPOROOT/chkdsk.zip" "$CDROOT/CORE/"
-
 
90
cp "$REPOROOT/choice.zip" "$CDROOT/CORE/"
-
 
91
cp "$REPOROOT/command.zip" "$CDROOT/CORE/"
-
 
92
cp "$REPOROOT/comp.zip" "$CDROOT/CORE/"
-
 
93
cp "$REPOROOT/cpidos.zip" "$CDROOT/CORE/"
-
 
94
cp "$REPOROOT/ctmouse.zip" "$CDROOT/CORE/"
-
 
95
cp "$REPOROOT/debug.zip" "$CDROOT/CORE/"
-
 
96
cp "$REPOROOT/defrag.zip" "$CDROOT/CORE/"
-
 
97
cp "$REPOROOT/deltree.zip" "$CDROOT/CORE/"
-
 
98
cp "$REPOROOT/devload.zip" "$CDROOT/CORE/"
-
 
99
cp "$REPOROOT/diskcomp.zip" "$CDROOT/CORE/"
-
 
100
cp "$REPOROOT/diskcopy.zip" "$CDROOT/CORE/"
-
 
101
cp "$REPOROOT/display.zip" "$CDROOT/CORE/"
-
 
102
cp "$REPOROOT/dosfsck.zip" "$CDROOT/CORE/"
-
 
103
cp "$REPOROOT/edit.zip" "$CDROOT/CORE/"
-
 
104
cp "$REPOROOT/edlin.zip" "$CDROOT/CORE/"
-
 
105
cp "$REPOROOT/exe2bin.zip" "$CDROOT/CORE/"
-
 
106
cp "$REPOROOT/fc.zip" "$CDROOT/CORE/"
-
 
107
cp "$REPOROOT/fdapm.zip" "$CDROOT/CORE/"
-
 
108
cp "$REPOROOT/fdisk.zip" "$CDROOT/CORE/"
-
 
109
cp "$REPOROOT/fdnpkg.zip" "$CDROOT/CORE/"
-
 
110
cp "$REPOROOT/find.zip" "$CDROOT/CORE/"
-
 
111
cp "$REPOROOT/format.zip" "$CDROOT/CORE/"
-
 
112
cp "$REPOROOT/help.zip" "$CDROOT/CORE/"
-
 
113
cp "$REPOROOT/himemx.zip" "$CDROOT/CORE/"
-
 
114
cp "$REPOROOT/kernel.zip" "$CDROOT/CORE/"
-
 
115
cp "$REPOROOT/keyb.zip" "$CDROOT/CORE/"
-
 
116
cp "$REPOROOT/keyb_lay.zip" "$CDROOT/CORE/"
-
 
117
cp "$REPOROOT/label.zip" "$CDROOT/CORE/"
-
 
118
cp "$REPOROOT/lbacache.zip" "$CDROOT/CORE/"
-
 
119
cp "$REPOROOT/mem.zip" "$CDROOT/CORE/"
-
 
120
cp "$REPOROOT/mirror.zip" "$CDROOT/CORE/"
-
 
121
cp "$REPOROOT/mode.zip" "$CDROOT/CORE/"
-
 
122
cp "$REPOROOT/more.zip" "$CDROOT/CORE/"
-
 
123
cp "$REPOROOT/move.zip" "$CDROOT/CORE/"
-
 
124
cp "$REPOROOT/nansi.zip" "$CDROOT/CORE/"
-
 
125
cp "$REPOROOT/nlsfunc.zip" "$CDROOT/CORE/"
-
 
126
cp "$REPOROOT/print.zip" "$CDROOT/CORE/"
-
 
127
cp "$REPOROOT/rdisk.zip" "$CDROOT/CORE/"
-
 
128
cp "$REPOROOT/recover.zip" "$CDROOT/CORE/"
-
 
129
cp "$REPOROOT/replace.zip" "$CDROOT/CORE/"
-
 
130
cp "$REPOROOT/share.zip" "$CDROOT/CORE/"
-
 
131
cp "$REPOROOT/shsucdx.zip" "$CDROOT/CORE/"
-
 
132
cp "$REPOROOT/sort.zip" "$CDROOT/CORE/"
-
 
133
cp "$REPOROOT/swsubst.zip" "$CDROOT/CORE/"
-
 
134
cp "$REPOROOT/tree.zip" "$CDROOT/CORE/"
-
 
135
cp "$REPOROOT/undelete.zip" "$CDROOT/CORE/"
-
 
136
cp "$REPOROOT/xcopy.zip" "$CDROOT/CORE/"
-
 
137
 
83
 
138
# build the repo (also builds the listing.txt file)
84
# build the repo (also builds the listing.txt file)
139
dorepo
85
dorepo
140
 
86
 
-
 
87
# add CORE packages to CDROOT + create the list of packages on floppy
-
 
88
for pkg in "${COREPKGS[@]}" ; do
-
 
89
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
-
 
90
  echo "$pkg" >> "$FLOPROOT/install.lst"
-
 
91
done
-
 
92
 
-
 
93
# prepare the content of the boot (install) floppy
-
 
94
cp "install/install.com" "$FLOPROOT/"
-
 
95
cp "install/nls/"install.?? "$FLOPROOT/"
-
 
96
cp -r "$CUSTFILES/floppy/"* "$FLOPROOT/"
-
 
97
 
-
 
98
# build the boot floppy image
-
 
99
export MTOOLS_NO_VFAT=1
-
 
100
truncate -s 1474560 "$CDROOT/boot.img"
-
 
101
mformat -f 1440 -v SVARDOS -B "$CUSTFILES/floppy.mbr" -i "$CDROOT/boot.img"
-
 
102
mcopy -sQm -i "$CDROOT/boot.img" "$FLOPROOT/"* ::/
-
 
103
 
141
# delete previous (if any) *.iso and *.md5 files
104
# delete previous (if any) *.iso and *.md5 files
142
echo "cleaning up old versions..."
105
echo "cleaning up old versions..."
143
rm -f "$PUBDIR/svardos.iso" "$PUBDIR/svardos.iso.md5"
106
rm -f "$PUBDIR/svardos.iso" "$PUBDIR/svardos.iso.md5"
144
 
107
 
145
CDISO="$PUBDIR/svardos.iso"
108
CDISO="$PUBDIR/svardos.iso"
146
 
109
 
147
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT"
110
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVARDOS -o "$CDISO" "$CDROOT"
148
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
149
 
111
 
150
# cleanup CDROOT
112
# cleanup temporary things
151
rm -rf "$CDROOT"
113
rm -rf "$CDROOT" "$FLOPROOT"
152
 
114
 
153
# compute the MD5 of the ISO file, taking care to include only the filename in it
115
# compute the MD5 of the ISO file, taking care to include only the filename in it
154
echo "computing md5 sums..."
116
echo "computing md5 sums..."
155
cd `dirname "$CDISO"`
117
cd `dirname "$CDISO"`
156
md5sum `basename "$CDISO"` > "$CDISO.md5"
118
md5sum `basename "$CDISO"` > "$CDISO.md5"
157
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
158
 
119
 
159
cd "$origdir"
120
cd "$origdir"
160
 
121
 
161
#cd svnlschk
122
#cd svnlschk
162
#./webgen.sh
123
#./webgen.sh