mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-24 21:38:05 -05:00
19 lines
838 B
Bash
19 lines
838 B
Bash
#!/bin/bash
|
|
#
|
|
#rsync -aP jorritw@frs.sourceforge.net:/home/frs/project/coolprop/ /home/jorrit/tmp/sourceforge/
|
|
# Scan the tree and change the folder date to the date
|
|
# of the oldest file in it
|
|
#for DIR in /home/jorrit/tmp/sourceforge/CoolProp/*/; do
|
|
for DIR in ../coolprop/CoolProp/*/; do
|
|
NEWEST=$(find "$DIR" ! -type d -printf "%T@ %p\n" | sort -n | tail -n1)
|
|
FDATE=${NEWEST:0:10}
|
|
FNAME=${NEWEST:22}
|
|
echo "$DIR: $(date -d @$FDATE +%F) of $FNAME"
|
|
touch -r "$FNAME" "$DIR"*
|
|
done
|
|
# #
|
|
# #rsync -a -f"+ */" -f"- *" /home/jorrit/tmp/sourceforge/ jorritw@frs.sourceforge.net:/home/frs/project/coolprop/
|
|
# rsync -t /home/jorrit/tmp/sourceforge/ jorritw@frs.sourceforge.net:/home/frs/project/coolprop/
|
|
#rsync -rtcv -f"+ */" -f"- *" /home/jorrit/tmp/sourceforge/ jorritw@frs.sourceforge.net:/home/frs/project/coolprop/
|
|
exit 0
|