This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goclient-contrib. commit fa661ac01c84facbefa7bc004052975ddffeada7 Author: Mike DePaulo <mikedep333@gmail.com> Date: Sat Feb 28 20:03:05 2015 -0500 generate-timestamps-sample-command.txt -> generate-timestamps-on-folder.sh --- generate-timestamps-on-folder.sh | 16 ++++++++++++++++ generate-timestamps-sample-command.txt | 2 -- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/generate-timestamps-on-folder.sh b/generate-timestamps-on-folder.sh new file mode 100755 index 0000000..da8263c --- /dev/null +++ b/generate-timestamps-on-folder.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ $# -eq 0 ] +then + echo "Usage: ${0} directory-name (no trailing slash)" + exit +fi + +if [[ ${1} == *"/"* ]] +then + echo "Usage: ${0} directory-name (no trailing slash)" + exit +fi + +# http://superuser.com/questions/513753/how-to-save-and-restore-files-created-... +find ${1} -type f -exec stat -c 'touch --no-create -d "%y" "%n"' {} \; > ${1}_set-timestamps.sh diff --git a/generate-timestamps-sample-command.txt b/generate-timestamps-sample-command.txt deleted file mode 100644 index c64a01c..0000000 --- a/generate-timestamps-sample-command.txt +++ /dev/null @@ -1,2 +0,0 @@ -# http://superuser.com/questions/513753/how-to-save-and-restore-files-created-... -find "folder" -type f -exec stat -c 'touch --no-create -d "%y" "%n"' {} \; -- Alioth's /srv/git/code.x2go.org/x2goclient-contrib.git//../..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient-contrib.git