-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.sh
executable file
·19 lines (17 loc) · 915 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e
# prepare a release
for f in configs/debxo-*; do
desktop=$(basename $f | sed 's/debxo-//')
./mkchroot.sh --config-type debxo-${desktop} \
--local-apt-mirror "deb http://localhost:9999/debian squeeze main contrib non-free
deb http://localhost:9999/security squeeze/updates main contrib non-free
deb http://localhost:9999/backports squeeze-backports main contrib non-free" \
debxo-${desktop}
[ -f ./configs/debxo-${desktop}/fstab-ubifs ] && ./mkubifs.sh --config-type debxo-${desktop} debxo-${desktop} ${desktop}.img
[ -f ./configs/debxo-${desktop}/fstab-ext3 ] && ./mkext3.sh --config-type debxo-${desktop} debxo-${desktop} \
debxo-${desktop}.ext3.img
[ -f debxo-${desktop}.ext3.img ] && gzip debxo-${desktop}.ext3.img
mkdir -p ext3 nand
[ -f debxo-${desktop}.ext3.img.gz ] && mv debxo-${desktop}.ext3.img.gz ext3
[ -f ${desktop}.img ] && mv ${desktop}.img ${desktop}.dat nand
done