41 lines
1.0 KiB
Bash
Executable File
41 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# capture n°080530
|
|
#
|
|
|
|
###################################
|
|
#
|
|
###################################
|
|
# exemple ./hugin_bash.sh 36077 36159
|
|
|
|
function batch_exif_photos {
|
|
# this is a WIP
|
|
|
|
local min=$1
|
|
local max=$2
|
|
local gopro_subfolder=$3
|
|
|
|
echo " création des assemblages pour le dossier $gopro_subfolder pour les photos $1 à $2"
|
|
|
|
archive_zfs="/home/poule/encrypted/stockage-syncable"
|
|
pto_folder="$archive_zfs/www/development/html/scripts/hugin-gopro-fusion/output_pto/"
|
|
destination_pto="$archive_zfs/photos/imageries/gopro/pto"
|
|
# test de l'existence des dossiers
|
|
if [ -f "$archive_zfs" ] ; then
|
|
echo "zfs archive is not mounted"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f "$destination_pto" ] ; then
|
|
mkdir -p "$archive_zfs/photos/imageries/gopro/INBOX_PTO_hugin"
|
|
fi
|
|
# move the generated pto and scripts
|
|
mv "$pto_folder/*" "$destination_pto"
|
|
|
|
cd "$destination_pto"
|
|
echo "lancement de hugin_executor_from$min_to_$max.sh"
|
|
# bash "hugin_executor_from$min_to_$max.sh"
|
|
|
|
}
|
|
|
|
batch_exif_photos $1 $2 $3 |