Line 10... |
Line 10... |
10 |
#
|
10 |
#
|
11 |
|
11 |
|
12 |
### parameters block starts here ############################################
|
12 |
### parameters block starts here ############################################
|
13 |
|
13 |
|
14 |
REPOROOT=`realpath ./website/repos/`
|
14 |
REPOROOT=`realpath ./website/repos/`
|
15 |
REPOROOTSRC=`realpath ./website/repos-src/`
|
15 |
REPOROOTSRC=`realpath ./cdroot/`
|
16 |
REPOROOTNOSRC=`realpath ./website/repos-nosrc/`
|
16 |
REPOROOTNOSRC=`realpath ./cdrootnosrc/`
|
17 |
BUILDIDX=`realpath ../fdnpkg/trunk/buildidx/buildidx`
|
17 |
BUILDIDX=`realpath ../fdnpkg/trunk/buildidx/buildidx`
|
18 |
CDISODIR=`realpath ./iso/`
|
18 |
CDISODIR=`realpath ./iso/`
|
19 |
PUBDIR=`realpath ./website/`
|
19 |
PUBDIR=`realpath ./website/`
|
20 |
CDROOT=`realpath ./cdroot`
|
20 |
CDROOT=`realpath ./cdroot`
|
21 |
CDROOTNOSRC=`realpath ./cdrootnosrc`
|
21 |
CDROOTNOSRC=`realpath ./cdrootnosrc`
|
Line 109... |
Line 109... |
109 |
dorepo sound
|
109 |
dorepo sound
|
110 |
dorepo util
|
110 |
dorepo util
|
111 |
|
111 |
|
112 |
# delete all (previous) *.iso and *.md5 files
|
112 |
# delete all (previous) *.iso and *.md5 files
|
113 |
echo "cleaning up old versions..."
|
113 |
echo "cleaning up old versions..."
|
114 |
rm $CDISODIR/svarog386-*-*.iso*
|
114 |
rm -r $CDISODIR/*
|
115 |
|
115 |
|
116 |
# compute a filename for the ISO files and build it
|
116 |
# compute a filename for the ISO files and build it
|
117 |
DATESTAMP=`date +%Y%m%d-%H%M`
|
117 |
DATESTAMP=`date +%Y%m%d-%H%M`
|
- |
|
118 |
YEAR=`date +%Y`
|
- |
|
119 |
|
- |
|
120 |
mkdir -p "$CDISODIR/$YEAR"
|
- |
|
121 |
|
118 |
CDISO="$CDISODIR/svarog386-$DATESTAMP-full.iso"
|
122 |
CDISO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-full.iso"
|
119 |
CDISONOSRC="$CDISODIR/svarog386-$DATESTAMP-nosrc.iso"
|
123 |
CDISONOSRC="$CDISODIR/$YEAR/svarog386-$DATESTAMP-nosrc.iso"
|
120 |
CDISOMICRO="$CDISODIR/svarog386-$DATESTAMP-micro.iso"
|
124 |
CDISOMICRO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-micro.iso"
|
121 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISO" "$CDROOT"
|
125 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISO" "$CDROOT"
|
122 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
126 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
123 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISONOSRC" "$CDROOTNOSRC"
|
127 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISONOSRC" "$CDROOTNOSRC"
|
124 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
128 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
125 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISOMICRO" "$CDROOTMICRO"
|
129 |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISOMICRO" "$CDROOTMICRO"
|
Line 139... |
Line 143... |
139 |
md5sum `basename "$CDISOMICRO"` > "$CDISOMICRO.md5"
|
143 |
md5sum `basename "$CDISOMICRO"` > "$CDISOMICRO.md5"
|
140 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
144 |
if [ $? -ne 0 ] ; then exit 1 ; fi
|
141 |
|
145 |
|
142 |
# compute the ini file with properties of each ISO
|
146 |
# compute the ini file with properties of each ISO
|
143 |
echo "[micro]" > "$PUBDIR/downloads.ini"
|
147 |
echo "[micro]" > "$PUBDIR/downloads.ini"
|
144 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-micro.iso/download\"" >> "$PUBDIR/downloads.ini"
|
148 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-micro.iso/download\"" >> "$PUBDIR/downloads.ini"
|
145 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-micro.md5/download\"" >> "$PUBDIR/downloads.ini"
|
149 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-micro.md5/download\"" >> "$PUBDIR/downloads.ini"
|
146 |
echo "size=`stat --format='%s' $CDISOMICRO`" >> "$PUBDIR/downloads.ini"
|
150 |
echo "size=`stat --format='%s' $CDISOMICRO`" >> "$PUBDIR/downloads.ini"
|
147 |
echo "date=`stat --format='%Y' $CDISOMICRO`" >> "$PUBDIR/downloads.ini"
|
151 |
echo "date=`stat --format='%Y' $CDISOMICRO`" >> "$PUBDIR/downloads.ini"
|
148 |
echo "" >> "$PUBDIR/downloads.ini"
|
152 |
echo "" >> "$PUBDIR/downloads.ini"
|
149 |
echo "[full]" >> "$PUBDIR/downloads.ini"
|
153 |
echo "[full]" >> "$PUBDIR/downloads.ini"
|
150 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-full.iso/download\"" >> "$PUBDIR/downloads.ini"
|
154 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-full.iso/download\"" >> "$PUBDIR/downloads.ini"
|
151 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-full.md5/download\"" >> "$PUBDIR/downloads.ini"
|
155 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-full.md5/download\"" >> "$PUBDIR/downloads.ini"
|
152 |
echo "size=`stat --format='%s' $CDISO`" >> "$PUBDIR/downloads.ini"
|
156 |
echo "size=`stat --format='%s' $CDISO`" >> "$PUBDIR/downloads.ini"
|
153 |
echo "date=`stat --format='%Y' $CDISO`" >> "$PUBDIR/downloads.ini"
|
157 |
echo "date=`stat --format='%Y' $CDISO`" >> "$PUBDIR/downloads.ini"
|
154 |
echo "" >> "$PUBDIR/downloads.ini"
|
158 |
echo "" >> "$PUBDIR/downloads.ini"
|
155 |
echo "[nosrc]" >> "$PUBDIR/downloads.ini"
|
159 |
echo "[nosrc]" >> "$PUBDIR/downloads.ini"
|
156 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-nosrc.iso/download\"" >> "$PUBDIR/downloads.ini"
|
160 |
echo "url=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-nosrc.iso/download\"" >> "$PUBDIR/downloads.ini"
|
157 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/svarog386-$DATESTAMP-nosrc.md5/download\"" >> "$PUBDIR/downloads.ini"
|
161 |
echo "md5=\"https://sourceforge.net/projects/svarog386/files/$YEAR/svarog386-$DATESTAMP-nosrc.md5/download\"" >> "$PUBDIR/downloads.ini"
|
158 |
echo "size=`stat --format='%s' $CDISONOSRC`" >> "$PUBDIR/downloads.ini"
|
162 |
echo "size=`stat --format='%s' $CDISONOSRC`" >> "$PUBDIR/downloads.ini"
|
159 |
echo "date=`stat --format='%Y' $CDISONOSRC`" >> "$PUBDIR/downloads.ini"
|
163 |
echo "date=`stat --format='%Y' $CDISONOSRC`" >> "$PUBDIR/downloads.ini"
|
160 |
|
164 |
|
161 |
cd "$origdir"
|
165 |
cd "$origdir"
|
162 |
|
166 |
|