mk.cpio 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. #+------------------------------------------------------------------
  3. # mk.cpio - 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. #:05-04-1994-04:39-wht@n4hgf-ECU release 3.30
  16. #:01-11-1994-16:35-wht@n4hgf-append .Z here
  17. #:03-05-1993-03:23-wht@n4hgf-make cpio independent of shell/make vagaries
  18. DEST=$1.Z
  19. DIR=`/bin/pwd`
  20. DIR=`basename $DIR`
  21. echo "*****************************************************************"
  22. echo making $DEST from distribution in $DIR
  23. echo "*****************************************************************"
  24. cd doc; make; cd ..
  25. rm -f /tmp/ecu.cpio.fls ./cpio.fls
  26. make shar.fls
  27. cat shar.fls > /tmp/ecu.cpio.fls
  28. echo doc/ecu.man >> /tmp/ecu.cpio.fls
  29. echo doc/proc.man >> /tmp/ecu.cpio.fls
  30. sed -e 's:^:'$DIR'/:' < /tmp/ecu.cpio.fls > cpio.fls;
  31. rm -f $DEST
  32. cd ..;cat $DIR/cpio.fls | sort -y | cpio -o -H odc | compress > $DEST
  33. cd $DIR
  34. zcat $DEST | cpio -itv | head