Subversion Repositories SvarDOS

Rev

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

Rev 337 Rev 557
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#
2
#
3
# SvarDOS build script
3
# SvarDOS build script
4
# http://svardos.osdn.io
4
# http://svardos.osdn.io
5
# Copyright (C) 2016-2021 Mateusz Viste
5
# Copyright (C) 2016-2022 Mateusz Viste
6
#
6
#
7
# This script generates the SvarDOS repository index and builds ISO CD images.
7
# This script generates the SvarDOS repository index and builds ISO CD images.
8
# It should be executed each time that a package has been modified, added or
8
# It should be executed each time that a package has been modified, added or
9
# removed.
9
# removed.
10
#
10
#
Line 50... Line 50...
50
# abort if anything fails
50
# abort if anything fails
51
set -e
51
set -e
52
 
52
 
53
 
53
 
54
# list of packages to be part of CORE (always installed)
54
# list of packages to be part of CORE (always installed)
55
COREPKGS="amb attrib chkdsk choice command cpidos deltree devload diskcopy display dosfsck edit fc fdapm fdisk format help himemx kernel keyb keyb_lay label mem mode more move pkg pkgnet shsucdx sort tree"
55
COREPKGS="amb attrib chkdsk choice command cpidos deltree devload diskcopy display dosfsck edit fc fdapm fdisk format help himemx kernel keyb keyb_lay label localcfg mem mode more move pkg pkgnet shsucdx sort tree"
56
 
56
 
57
# list of packages to be part of EXTRA (only sometimes installed, typically drivers)
57
# list of packages to be part of EXTRA (only sometimes installed, typically drivers)
58
EXTRAPKGS="pcntpk udvd2"
58
EXTRAPKGS="pcntpk udvd2"
59
 
59
 
60
# all packages
60
# all packages
Line 69... Line 69...
69
  # now strip the sources from repo versions
69
  # now strip the sources from repo versions
70
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "SOURCE/*" ';'
70
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "SOURCE/*" ';'
71
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "source/*" ';'
71
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "source/*" ';'
72
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "Source/*" ';'
72
  find "$REPOROOT/" -iname '*.zip' -exec zip "{}" -d "Source/*" ';'
73
 
73
 
-
 
74
  # hide all alternative versions under a different extension so the index builder is
-
 
75
  # not confused (filename of an alt version contains a dash, eg. "DOSMID-0.9.5.zip")
-
 
76
  rename .zip .altver "$REPOROOT"/*-*.zip
-
 
77
 
74
  # build repo idx
78
  # build repo index
75
  $BUILDIDX "$REPOROOT/"
79
  $BUILDIDX "$REPOROOT/"
-
 
80
 
-
 
81
  # unhide all alt versions
-
 
82
  rename .altver .zip "$REPOROOT"/*.altver
76
}
83
}
77
 
84
 
78
 
85
 
79
# prepares image for floppy sets of:
86
# prepares image for floppy sets of:
80
# $1 cylinders
87
# $1 cylinders