On Fri, 28 Dec 2012, Martin Quinson wrote: > + modif_time=`date +%m%d%H%M.%S` > if [ -e "$QUILT_PC/$patch" ] > then > - touch $QUILT_PC/$patch/.timestamp > + touch -t "$modif_time" "$QUILT_PC/$patch/.timestamp" > else > mkdir "$QUILT_PC/$patch" > fi > + touched_files=`quilt files $patch` > + if [ -n "$touched_files" ] > + then > + touch -t "$modif_time" $touched_files > + fi
Instead of using the -t option, I would suggest to use the -r option. You can thus avoid the first changd and use this in the second part: touch -r "$QUILT_PC/$patch/.timestamp" $touched_files But I also have some doubt about the way you handle the list of files: - it might fail with too many files modified in a single patch - it might fail with files containing spaces Cheers, -- Raphaël Hertzog ◈ Debian Developer Get the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

