8508fda14bbd3d1db75c467d31ed90145beaf9ea
hiram
  Thu May 30 09:45:56 2013 -0700
add the update of the actual userApps bits during an update refs #9149
diff --git src/userApps/Makefile src/userApps/Makefile
index 168b84d..a30e3a4 100644
--- src/userApps/Makefile
+++ src/userApps/Makefile
@@ -21,27 +21,34 @@
 
 all:  utils
 
 utils: libs
 	cd kent/src && ${envVars} ${MAKE} userApps
 	cd kent/src/parasol && ${envVars} ${MAKE}
 	./kent/src/utils/userApps/mkREADME.sh ${DESTDIR}/${BINDIR} ${CURDIR}/kentUtils.Documentation.txt
 
 libs: part5Src.zip
 	cd samtabix && ${envVars} ${MAKE}
 	cd kent/src && ${envVars} ${MAKE} libs
 
 clean:
 	cd kent/src && ${envVars} ${MAKE} -i -k clean
 	rm -f part1Src.zip part2Src.zip part3Src.zip part4Src.zip part5Src.zip
+	rm -f userApps.zip
 
 part5Src.zip: fetchSource
 
 fetchSource:
 	./fetchKentSource.sh
 	@echo -n "size of fetched kent source tree: "
 	@du -hs kent
 	@echo -n "number of files in kent source tree: "
 	@find ./kent -type f | wc -l
 
-update: clean
+update: clean userApps
 	${MAKE} utils
+
+userApps:
+	git archive --format=zip -9 \
+	    --remote=git://genome-source.cse.ucsc.edu/kent.git \
+	    HEAD src/userApps > userApps.zip
+	unzip -q -o -d . -j userApps.zip