Subversion Repositories SvarDOS

Rev

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

Rev 642 Rev 643
Line 11... Line 11...
11
# usage: ./build.sh [noclean]
11
# usage: ./build.sh [noclean]
12
#
12
#
13
 
13
 
14
### parameters block starts here ############################################
14
### parameters block starts here ############################################
15
 
15
 
-
 
16
CURDATE=`date +%Y%m%d`
16
PKGDIR=`realpath ./packages`
17
PKGDIR=`realpath ./packages`
17
REPOROOT=`realpath ./packages`
18
REPOROOT=`realpath ./packages`
18
PUBDIR=`realpath ./website/download`
19
PUBDIR=`realpath ./website/download`/$CURDATE
19
CDROOT=`realpath ./cdroot`
20
CDROOT=`realpath ./cdroot`
20
FLOPROOT=`realpath ./floproot`
21
FLOPROOT=`realpath ./floproot`
21
CUSTFILES=`realpath ./files`
22
CUSTFILES=`realpath ./files`
22
 
23
 
23
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
24
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
Line 97... Line 98...
97
    cp "$4/disk1.img" $5
98
    cp "$4/disk1.img" $5
98
  fi
99
  fi
99
 
100
 
100
  # zip the images (and remove them at the same time)
101
  # zip the images (and remove them at the same time)
101
  rm -f "$PUBDIR/svardos-floppy-$4k.zip"
102
  rm -f "$PUBDIR/svardos-floppy-$4k.zip"
102
  zip -9 -rmj "$PUBDIR/svardos-floppy-$4k.zip" $4/*
103
  zip -9 -rmj "$PUBDIR/svardos-$CURDATE-floppy-$4k.zip" $4/*
103
 
104
 
104
  # clean up
105
  # clean up
105
  rmdir $4
106
  rmdir $4
106
}
107
}
107
 
108
 
Line 111... Line 112...
111
# remember where I am, so I can get back here once all is done
112
# remember where I am, so I can get back here once all is done
112
origdir=`pwd`
113
origdir=`pwd`
113
 
114
 
114
mkdir "$CDROOT"
115
mkdir "$CDROOT"
115
mkdir "$FLOPROOT"
116
mkdir "$FLOPROOT"
-
 
117
mkdir "$PUBDIR"
116
 
118
 
117
# add CORE packages to CDROOT + create the list of packages on floppy
119
# add CORE packages to CDROOT + create the list of packages on floppy
118
for pkg in $COREPKGS ; do
120
for pkg in $COREPKGS ; do
119
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
121
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
120
  echo "$pkg" >> "$FLOPROOT/install.lst"
122
  echo "$pkg" >> "$FLOPROOT/install.lst"
Line 203... Line 205...
203
echo "" >> "$DOSEMUDIR/autoexec.bat"
205
echo "" >> "$DOSEMUDIR/autoexec.bat"
204
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
206
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
205
echo "ECHO Welcome to SvarDOS (powered by DOSEMU)! Type HELP if you are lost." >> "$DOSEMUDIR/autoexec.bat"
207
echo "ECHO Welcome to SvarDOS (powered by DOSEMU)! Type HELP if you are lost." >> "$DOSEMUDIR/autoexec.bat"
206
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
208
echo "ECHO." >> "$DOSEMUDIR/autoexec.bat"
207
rm -f "$PUBDIR/svardos-dosemu.zip"
209
rm -f "$PUBDIR/svardos-dosemu.zip"
208
zip -rm9jk "$PUBDIR/svardos-dosemu.zip" "$DOSEMUDIR"
210
zip -rm9jk "$PUBDIR/svardos-$CURDATE-dosemu.zip" "$DOSEMUDIR"
209
rmdir "$DOSEMUDIR"
211
rmdir "$DOSEMUDIR"
210
 
212
 
211
# prepare the USB bootable image
213
# prepare the USB bootable image
212
USBIMG=$PUBDIR/svardos-usb.img
214
USBIMG=$PUBDIR/svardos-usb.img
213
cp files/boot-svardos.img $USBIMG
215
cp files/boot-svardos.img $USBIMG
Line 216... Line 218...
216
  mcopy -mi "$USBIMG@@32256" "$CDROOT/$p.zip" ::/
218
  mcopy -mi "$USBIMG@@32256" "$CDROOT/$p.zip" ::/
217
done
219
done
218
 
220
 
219
# compress the USB image
221
# compress the USB image
220
rm -f "$PUBDIR/svardos-usb.zip"
222
rm -f "$PUBDIR/svardos-usb.zip"
221
zip -mj9 "$PUBDIR/svardos-usb.zip" "$USBIMG"
223
zip -mj9 "$PUBDIR/svardos-$CURDATE-usb.zip" "$USBIMG"
222
 
224
 
223
# prepare the USB-ZIP bootable image
225
# prepare the USB-ZIP bootable image
224
#USBZIPIMG=$PUBDIR/svardos-usbzip.img
226
#USBZIPIMG=$PUBDIR/svardos-usbzip.img
225
#cat files/usb-zip.mbr "$PUBDIR/svardos-zip100.img" > $USBZIPIMG
227
#cat files/usb-zip.mbr "$PUBDIR/svardos-zip100.img" > $USBZIPIMG
226
 
228
 
227
CDISO="$PUBDIR/svardos-cd.iso"
229
CDISO="$PUBDIR/svardos-$CURDATE-cd.iso"
228
CDZIP="$PUBDIR/svardos-cd.zip"
230
CDZIP="$PUBDIR/svardos-$CURDATE-cd.zip"
229
 
231
 
230
# delete previous (if any) iso
232
# delete previous (if any) iso
231
echo "cleaning up old versions..."
233
echo "cleaning up old versions..."
232
rm -f "$CDISO" "$CDZIP"
234
rm -f "$CDISO" "$CDZIP"
233
 
235