mk.cpiogz 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. #+------------------------------------------------------------------
  3. # mk.cpiogz - ECU cpio 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-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS
  15. #:08-27-1995-14:15-wht@n4hgf-adapt mk.cpio
  16. DEST=$1.gz
  17. DIR=`/bin/pwd`
  18. DIR=`basename $DIR`
  19. echo "*****************************************************************"
  20. echo making $DEST from distribution in $DIR
  21. echo "*****************************************************************"
  22. cd doc; make; cd ..
  23. rm -f /tmp/ecu.cpio.fls ./cpio.fls
  24. make shar.fls
  25. cat shar.fls > /tmp/ecu.cpio.fls
  26. echo doc/ecu.man >> /tmp/ecu.cpio.fls
  27. echo doc/proc.man >> /tmp/ecu.cpio.fls
  28. sed -e 's:^:'$DIR'/:' < /tmp/ecu.cpio.fls > cpio.fls;
  29. rm -f $DEST
  30. cd ..;cat $DIR/cpio.fls | sort -y | cpio -o -H odc | gzip -9 > $DEST
  31. cd $DIR
  32. gunzip < $DEST | cpio -itv | head