VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /proc/thread-self/root/usr/local/lib/node_modules/mediasoup/worker/deps/lcov/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/usr/local/lib/node_modules/mediasoup/worker/deps/lcov/bin/copy_dates.sh
#!/usr/bin/env bash
#
# Usage: copy_dates.sh SOURCE TARGET
#
# For each file found in SOURCE, set the modification time of the copy of that
# file in TARGET to either the time of the latest Git commit (if SOURCE contains
# a Git repository and the file was not modified after the last commit), or the
# modification time of the original file.

SOURCE="$1"
TARGET="$2"

if [ -z "$SOURCE" -o -z "$TARGET" ] ; then
	echo "Usage: $0 SOURCE TARGET" >&2
	exit 1
fi

[ -d "$SOURCE/.git" ] ; NOGIT=$?

echo "Copying modification/commit times from $SOURCE to $TARGET"

cd "$SOURCE" || exit 1
find * -type f | while read FILENAME ; do
	[ ! -e "$TARGET/$FILENAME" ] && continue

	# Copy modification time
	touch -m "$TARGET/$FILENAME" -r "$FILENAME"

	[ $NOGIT -eq 1 ] && continue				# No Git
	git diff --quiet -- "$FILENAME" || continue		# Modified
	git diff --quiet --cached -- "$FILENAME" || continue	# Modified

	# Apply modification time from Git commit time
	TIME=$(git log --pretty=format:%cd -n 1 --date=iso -- "$FILENAME")
	[ -n "$TIME" ] && touch -m "$TARGET/$FILENAME" --date "$TIME"
done

VaKeR 2022