mk.tar 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. #+------------------------------------------------------------------
  3. # mk.targz - ECU tar maker
  4. # wht@wht.net
  5. #
  6. # argument 1 is destination filename
  7. # files to be included must be in shar.fls
  8. #-------------------------------------------------------------------
  9. #+:EDITS:
  10. #:04-26-2000-11:16-wht@bob-RELEASE 4.42
  11. #:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00
  12. #:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul
  13. #:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11
  14. #:11-23-1995-11:00-wht@kepler-creation
  15. DEST=$1
  16. DIR=`/bin/pwd`
  17. DIR=`basename $DIR`
  18. echo "*****************************************************************"
  19. echo making $DEST from distribution in $DIR
  20. echo "*****************************************************************"
  21. cd doc; make; cd ..
  22. rm -f /tmp/ecu.tar.fls ./tar.fls
  23. make shar.fls
  24. cat shar.fls > /tmp/ecu.tar.fls
  25. echo doc/ecu.man >> /tmp/ecu.tar.fls
  26. echo doc/proc.man >> /tmp/ecu.tar.fls
  27. sed -e 's:^:'$DIR'/:' < /tmp/ecu.tar.fls | sort -y > tar.fls;
  28. rm -f $DEST
  29. cd ..;tar cf - `cat $DIR/tar.fls` > $DEST
  30. cd $DIR
  31. cat $DEST | tar tfv - | head