mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Oops
This commit is contained in:
parent
e7aaf24f12
commit
8e0d2871cb
2 changed files with 73 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
CD Build tools
|
||||||
|
==============
|
||||||
|
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Debian Wheezy
|
||||||
|
* genisoimage
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
```
|
||||||
|
wget http://build.yunohost.org/simple-cdd_0.3.14_all.deb
|
||||||
|
dpkg -i simple-cdd_0.3.14_all.deb
|
||||||
|
apt-get install -f
|
||||||
|
git clone git://github.com/YunoHost/cd_build.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Some problems can occur at `dpkg -i` but keep going !
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
```
|
||||||
|
cd cd_build
|
||||||
|
./build-yunohost amd64
|
||||||
|
```
|
||||||
|
|
||||||
|
Or
|
||||||
|
|
||||||
|
```
|
||||||
|
./build-yunohost i386
|
||||||
|
```
|
37
build-yunohost
Executable file
37
build-yunohost
Executable file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BUILD2="/home/yunohost/yunohostv2-amd64"
|
||||||
|
BUILD="/home/yunohost/yunohostv2-i386"
|
||||||
|
DATE=$(date +%m%d%y%H%M)
|
||||||
|
|
||||||
|
function build-i386
|
||||||
|
{
|
||||||
|
cd $BUILD
|
||||||
|
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-i386.conf
|
||||||
|
add-firmware-to images/debian-6.0.7-i386-CD-1.iso images/yunohostv2-$DATE-i386.iso wheezy
|
||||||
|
rm images/debian-6.0.7-i386-CD-1.iso
|
||||||
|
}
|
||||||
|
|
||||||
|
function build-amd64
|
||||||
|
{
|
||||||
|
cd $BUILD2
|
||||||
|
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-amd64.conf
|
||||||
|
add-firmware-to images/debian-7.1.0-amd64-CD-1.iso images/yunohostv2-$DATE-amd64.iso wheezy
|
||||||
|
rm images/debian-6.0.7-amd64-CD-1.iso
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "${1:-1}" = 1 ]]
|
||||||
|
then
|
||||||
|
build-i386
|
||||||
|
build-amd64
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
i386)
|
||||||
|
build-i386
|
||||||
|
;;
|
||||||
|
amd64)
|
||||||
|
build-amd64
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue