From 51cda16e1cc2d22a22ceff56700d1edd256171fc Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Tue, 29 Oct 2013 20:22:26 +0100 Subject: Debut d'automatisation de la construction tarball --- dist/build_all.sh | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'dist/build_all.sh') diff --git a/dist/build_all.sh b/dist/build_all.sh index 05a7907..5cdde31 100755 --- a/dist/build_all.sh +++ b/dist/build_all.sh @@ -1,2 +1,56 @@ #!/bin/bash +function export_files() { + srcbase=$1 + dstbase=$2 + echo "Copying files..." + IFS=' ' + while read src dst + do + [ -d "$dstbase/$dst" ] || mkdir -p "$dstbase/$dst" + cp "$srcbase/$src" "$dstbase/$dst" + done +} + +echo "Cleaning up work/ directory..." +[ -d work.old/ ] && rm -r work.old/ +[ -d work ] && mv work/ work.old/ +mkdir work/ + +srcbase=".." +dstbase="work/tarball" + +export_files $srcbase $dstbase <