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 --- .gitignore | 2 ++ dist/build_all.sh | 54 ++++++++++++++++++++++++++++++++ dist/scripts/po2mo.sh | 11 +++++-- samplefiles/content/en/start/props.ini | 2 +- samplefiles/content/fr/accueil/props.ini | 2 +- 5 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..244db3d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/work/ +dist/work.old/ 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 <