Commit Graph

14 Commits

Author SHA1 Message Date
thorpej 23d33fadf0 Don't escape constructs like ${FOO} in printf statements. awk doesn't
expand variables like that in printfs, and the escapes end up in the
output in some versions of awk.
2002-09-16 02:13:16 +00:00
thorpej 3587dba99e Escape { and } in the regexp that matches e.g. ${FOO}. 2002-09-15 16:15:40 +00:00
lukem a7e553295a support "mode=install", which generates a Makefile with an install target. 2002-08-18 14:03:42 +00:00
lukem 032b6cf60e - for COPY, default perm to 0444 if it's not supplied
- for COPYDIR, use perms of 0444 for files
- set perm to crunchgen program to 0555
- for mode=populate, add  `` || exit 1''  after  `` ( ... ) ''  to
  ensure that sh -e correctly exits upon failure...
2002-05-29 03:01:55 +00:00
lukem 6121661138 Improve wording for COPYDIR M.
Inspired by email on tech-install@ from Klaus Heinz <klaus.heinz@onlinehome.de>
2002-04-10 02:01:43 +00:00
lukem deffb66504 parselist.awk
- improve comments
- provide a general purpose variable replacement; replace contents of ${FOO}
  with ENVIRON["FOO"].
- deprecate @MACHINE@ and @MACHINE_ARCH@ in favour of using ${MACHINE}
  and ${MACHINE_ARCH} instead
- add errx() function; like err(), but doesn't print the line number
- invoke this script with various variables defined via PARSELISTENV

*/Makefile*
- use PARSELISTENV instead of POPULATEENV, and add variables like DESTDIR
- other minor tweaks

*/list*
- replace @MACHINE@ with ${MACHINE}
2002-03-14 22:26:08 +00:00
lukem cd5cc87679 in COPYDIR, don't run the find's if the cd failed 2002-03-14 01:24:35 +00:00
lukem 1a1a1a5721 cosmetic tweaks: sort some variable lists, improve descriptions, [...] 2002-03-14 01:07:27 +00:00
lukem a4fb7ad013 add MTREE keyword, which just outputs its args "as is" for mode=mtree 2002-03-07 01:36:34 +00:00
lukem a0ce988331 COPYDIR: output "./destdir" not "./destdir/." for the first entry 2002-03-06 04:47:58 +00:00
lukem fb33595139 implement COPYDIR for mtree and populate modes 2002-03-05 00:19:43 +00:00
lukem 6276be048b - improve error checking
- add support for passing variables to parselist.awk that are used to replace
  text in each line of the lists.  currently supported strings:
	text		variable
	----		--------
	@MACHINE_ARCH@	MACHINE_ARCH
	@MACHINE@	MACHINE
2002-02-07 11:39:17 +00:00
lukem 5bb092ee45 replace /unset mode with /unset all 2002-02-05 23:16:51 +00:00
lukem d691d4a33e distrib/common - shared files for building distribution media, initially
comprising of:

    Makefile.crunch
	build a crunchgen(1)ed binary from the provided lists

    Makefile.image
	build a tree from the provided lists, and
	build an ffs file system image from that tree using makefs(8),
	without requiring root privileges

    parselist.awk
	parse list files generating different output:
		crunchgen config
		mtree specfile
		sh commands to populate a tree
2002-02-03 15:24:43 +00:00