have different dists
[camarabuntu.git] / bin / update_vanilla_cd.sh
blob5c363615330dcb9c6ddec188374d207f7cfffa27
1 #!/bin/bash
3 # automate the process of updating a vanilla edubuntu cd with our customisations
4 # usage: $0 <path to git clone of camarabuntu project> <path to cd tree>
6 function help {
7 echo "USAGE: $0 <path to git clone of camarabuntu project> <path to cd tree>"
8 exit 1
11 case $1 in
12 "-h"|"--help")
13 help
14 esac
16 camarabuntu_dir=$1
17 cd_image_dir=$2
19 if [ ! "$camarabuntu_dir" -o ! "$cd_image_dir" ] ; then
20 help
23 set -e
25 ISO_DIRS="isolinux preseed"
27 for dir in $ISO_DIRS ; do
28 echo "updating $dir from git"
29 cp -r $camarabuntu_dir/$dir/* $cd_image_dir/$dir/
30 done