Subversion Repositories SvarDOS

Rev

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

Rev 624 Rev 632
Line 12... Line 12...
12
#
12
#
13
 
13
 
14
### parameters block starts here ############################################
14
### parameters block starts here ############################################
15
 
15
 
16
PKGDIR=`realpath ./packages`
16
PKGDIR=`realpath ./packages`
17
REPOROOT=`realpath ./website/repo`
17
REPOROOT=`realpath ./packages`
18
BUILDIDX=`realpath ./buildidx/buildidx.php`
-
 
19
PUBDIR=`realpath ./website/download`
18
PUBDIR=`realpath ./website/download`
20
CDROOT=`realpath ./cdroot`
19
CDROOT=`realpath ./cdroot`
21
FLOPROOT=`realpath ./floproot`
20
FLOPROOT=`realpath ./floproot`
22
CUSTFILES=`realpath ./files`
21
CUSTFILES=`realpath ./files`
23
 
22
 
Line 59... Line 58...
59
 
58
 
60
# all packages
59
# all packages
61
ALLPKGS="$COREPKGS $EXTRAPKGS"
60
ALLPKGS="$COREPKGS $EXTRAPKGS"
62
 
61
 
63
 
62
 
64
# function that builds the packages repository
-
 
65
function dorepo {
-
 
66
  # clear out the web repo and copy all zip files to it
-
 
67
  rm "$REPOROOT"/*.zip
-
 
68
  cp "$PKGDIR"/*.zip "$REPOROOT/"
-
 
69
  # now strip the sources from repo versions
-
 
70
  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/*" ';'
-
 
73
 
-
 
74
  # build repo index
-
 
75
  php "$BUILDIDX" "$REPOROOT"
-
 
76
}
-
 
77
 
-
 
78
 
-
 
79
# prepares image for floppy sets of:
63
# prepares image for floppy sets of:
80
# $1 cylinders
64
# $1 cylinders
81
# $2 heads (sides)
65
# $2 heads (sides)
82
# $3 sectors per track
66
# $3 sectors per track
83
# $4 size
67
# $4 size
Line 122... Line 106...
122
}
106
}
123
 
107
 
124
 
108
 
125
### actual code flow starts here ############################################
109
### actual code flow starts here ############################################
126
 
110
 
127
# check presence of the buildidx tool
-
 
128
if [ ! -f "$BUILDIDX" ] ; then
-
 
129
  echo "buildidx not found at $BUILDIDX"
-
 
130
  exit 1
-
 
131
fi
-
 
132
 
-
 
133
# remember where I am, so I can get back here once all is done
111
# remember where I am, so I can get back here once all is done
134
origdir=`pwd`
112
origdir=`pwd`
135
 
113
 
136
mkdir "$CDROOT"
114
mkdir "$CDROOT"
137
mkdir "$FLOPROOT"
115
mkdir "$FLOPROOT"
138
 
116
 
139
# build the repo (also builds the listing.txt file)
-
 
140
dorepo
-
 
141
 
-
 
142
# add CORE packages to CDROOT + create the list of packages on floppy
117
# add CORE packages to CDROOT + create the list of packages on floppy
143
for pkg in $COREPKGS ; do
118
for pkg in $COREPKGS ; do
144
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
119
  cp "$REPOROOT/$pkg.zip" "$CDROOT/"
145
  echo "$pkg" >> "$FLOPROOT/install.lst"
120
  echo "$pkg" >> "$FLOPROOT/install.lst"
146
done
121
done