[LON-CAPA-cvs] cvs: loncom /build Makefile

harris41 lon-capa-cvs@mail.lon-capa.org
Wed, 08 May 2002 20:19:25 -0000


harris41		Wed May  8 16:19:25 2002 EDT

  Modified files:              
    /loncom/build	Makefile 
  Log:
  causing tar to go into a "loncapa" directory
  
  
Index: loncom/build/Makefile
diff -u loncom/build/Makefile:1.99 loncom/build/Makefile:1.100
--- loncom/build/Makefile:1.99	Fri May  3 01:20:59 2002
+++ loncom/build/Makefile	Wed May  8 16:19:25 2002
@@ -1,13 +1,14 @@
 # The LearningOnline Network with CAPA
 
 # Scott Harrison
-# $Id: Makefile,v 1.99 2002/05/03 05:20:59 harris41 Exp $
+# $Id: Makefile,v 1.100 2002/05/08 20:19:25 harris41 Exp $
 
 DISTPROBE=`perl ./distprobe`
 DIST=$(DISTPROBE)
 CATEGORY="development"
 SOURCE=../..
 TARGET=""
+DIRTARGET=loncapa
 NORESTORECONF="0"
 HOSTNAME=""
 LAUNCH=| perl
@@ -479,8 +480,10 @@
 	chmod a+rx $(SOURCE)/CHECKRPMS
 	cp $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README
 	cd $(SOURCE); \
-	tar --no-recursion --numeric-owner --files-from MANIFEST \
-	-czf loncapa.tar.gz 2>WARNINGS || [ "0" == "0" ]
+	sort MANIFEST | perl -nle 'print "loncapa/$$_"' > MANIFEST_loncapa; \
+	ln -s . $(DIRTARGET); \
+	tar --no-recursion --numeric-owner --files-from MANIFEST_loncapa \
+	-czf -h loncapa.tar.gz 2>WARNINGS || [ "0" == "0" ]
 	cat $(SOURCE)/WARNINGS | \
 	xargs --replace=XXX echo '**** WARNING **** XXX' > WARNINGS
 	rm -f $(SOURCE)/WARNINGS