diff --git a/README.md b/README.md new file mode 100644 index 0000000..710cce5 --- /dev/null +++ b/README.md @@ -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 +``` diff --git a/build-yunohost b/build-yunohost new file mode 100755 index 0000000..1f874c5 --- /dev/null +++ b/build-yunohost @@ -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