3e9c58fd7471ce612009bfd13c644d26923e1258 braney Mon May 11 11:43:06 2020 -0700 add an rsync of htdocs/style/images diff --git src/hg/htdocs/style/makefile src/hg/htdocs/style/makefile index e1b46e2..7046b07 100644 --- src/hg/htdocs/style/makefile +++ src/hg/htdocs/style/makefile @@ -1,38 +1,47 @@ kentSrc = ../../.. include ../../../inc/common.mk # recursive target to do install to DEST, with extra excludes EXCL. +FIND=gitFiles CSS_FILES=HGStyle.css autocomplete.css blueStyle.css encodeProject.css floretStyle.css \ hgHubConnect.css jquery-ui.css jquery.contextmenu.css \ jquery.ui.autocomplete.css jquery.ui.colorPicker.css \ jquery.treetable.css jquery.treetable.theme.default.css \ jWest.css jWest.afterNiceMenu.css \ theme-modern.css ui.dropdownchecklist.css nice_menu.css \ encodeDataMatrix.css encodeDataSummary.css userAccounts.css \ encode3.css encode3Ucsc.css bootstrap.min.css \ gbStatic.css gb.css gbAfterMenu.css hgGtexTrackSettings.css spectrum.min.css user: if test -d ${DOCUMENTROOT}-${USER}; then \ ${MAKE} doInstall DEST=${DOCUMENTROOT}-${USER}/style; \ fi alpha: ${GITUP} ${MAKE} doInstall DEST=${DOCUMENTROOT}/style beta: ${GITUP} ${MAKE} doInstall DEST=${DOCUMENTROOT}-beta/style extra=-forceVersionNumbers clean: compile: +# Run rsync. Care is taken to preserve times and modes on files. rsync is +# smart about recreating files under the current users so that times and +# permissions may be modified. However, problems happen when a directory +# is not owned by the current users. These options attemp to work around it. +# use care in changing +rsyncOpts = --whole-file --times --recursive --omit-dir-times --relative --cvs-exclude --exclude='makefile' --exclude='cpAndLinkToResourceFiles.pl' --exclude='style/*' + install: ${MAKE} doInstall DEST=${DOCUMENTROOT}/style doInstall: @mkdir -p ${DEST}/ ../../utils/cpAndLinkToResourceFiles.pl ${extra} -destDir=${DEST} -versionFile=../../inc/versionInfo.h ${CSS_FILES} + umask 002; rsync ${rsyncOpts} `$(FIND) images` ${DEST}