For review: remove dir name assumption from `mmake tar'
Warwick Harvey
wharvey at cs.monash.edu.au
Wed Mar 10 16:44:10 AEDT 1999
Estimated hours taken: 1
Mmakefile:
Removed the assumption from the target `tar' that the root
source directory is named "mercury".
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.23.2.3
diff -u -r1.23.2.3 Mmakefile
--- Mmakefile 1999/02/09 05:10:42 1.23.2.3
+++ Mmakefile 1999/03/10 05:36:16
@@ -232,14 +232,15 @@
# will unpack into mercury-extras-$(VERSION).
# Put the tests directory into a gzipped tar archive that
# will unpack into mercury-tests-$(VERSION).
+ export ROOTNAME=`basename $$(pwd)`; \
cd .. && ( \
mkdir stuff-to-exclude; \
- mv mercury/trial stuff-to-exclude; \
- mv mercury/bytecode stuff-to-exclude; \
- mv mercury/lp_solve stuff-to-exclude; \
- mv mercury/extras/aditi stuff-to-exclude; \
- mv mercury/extras mercury-extras-$(VERSION); \
- mv mercury mercury-compiler-$(VERSION); \
+ mv $$ROOTNAME/trial stuff-to-exclude; \
+ mv $$ROOTNAME/bytecode stuff-to-exclude; \
+ mv $$ROOTNAME/lp_solve stuff-to-exclude; \
+ mv $$ROOTNAME/extras/aditi stuff-to-exclude; \
+ mv $$ROOTNAME/extras mercury-extras-$(VERSION); \
+ mv $$ROOTNAME mercury-compiler-$(VERSION); \
mv tests mercury-tests-$(VERSION); \
tar -cf - mercury-compiler-$(VERSION) | \
gzip -9 > mercury-compiler-$(VERSION).tar.gz; \
@@ -247,11 +248,11 @@
gzip -9 > mercury-extras-$(VERSION).tar.gz; \
tar -cf - mercury-tests-$(VERSION) | \
gzip -9 > mercury-tests-$(VERSION).tar.gz; \
- mv mercury-compiler-$(VERSION) mercury; \
- mv mercury-extras-$(VERSION) mercury/extras; \
+ mv mercury-compiler-$(VERSION) $$ROOTNAME; \
+ mv mercury-extras-$(VERSION) $$ROOTNAME/extras; \
mv mercury-tests-$(VERSION) tests; \
- mv stuff-to-exclude/aditi mercury/extras/aditi; \
- mv stuff-to-exclude/* mercury; \
+ mv stuff-to-exclude/aditi $$ROOTNAME/extras/aditi;\
+ mv stuff-to-exclude/* $$ROOTNAME; \
rmdir stuff-to-exclude; \
)
More information about the developers
mailing list