#!/bin/bash # Creates a log of the files that have been modified since ~/.Loggedin # Useful to create an installation log for the current version. # e.g. CurrentLog pkg-version source `which ttPM-funcs` 2>/dev/null || exit 1 # Do not run as root #checkNotRoot if [ $# = 0 ] then error "Usage: `basename $0` pkg-version" fi install -d $TT_PKG_LOCAL_DATA_DIR printMsg info "Creating Log-$1..." find $TT_PKG_DIRS \( -user $TT_PKG_NAME -or -group $TT_PKG_NAME \) -and -cnewer $HOME/.Loggedin -and \( -type f -or -type l \) 2>/dev/null | sort > $TT_PKG_LOCAL_DATA_DIR/Log-$1