On 09/02/2015 09:44 AM, Hardik A Gohil wrote:
> Hello,
>
> Can any one explain me this script from
> rules/post/ptxd_make_image_common.make used while creating root.ubifs image
>
> DOPERMISSIONS := '{ \
> if ($$1 == "f") \
> printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,
> $$2, $$3, $$4, $$2); \
> if ($$1 == "n") \
> printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\";
> mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, $$5,
> $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'This scripts generates chmod, chown commands to change the ownership and permission of a file or generates commands to create device nodes with given ownership and permissions. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list [email protected]
