From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ZX3Ex-0007gc-Qm for ptxdist@pengutronix.de; Wed, 02 Sep 2015 10:17:55 +0200 Received: from [172.17.34.152] (unknown [172.17.34.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 452B38DC9D for ; Wed, 2 Sep 2015 08:17:54 +0000 (UTC) References: From: Marc Kleine-Budde Message-ID: <55E6B0AD.1000207@pengutronix.de> Date: Wed, 2 Sep 2015 10:17:49 +0200 MIME-Version: 1.0 In-Reply-To: Subject: Re: [ptxdist] Script List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0249839607==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0249839607== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mx3UCxj03uexwHhl3TegK8XUsJJOEKVHo" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mx3UCxj03uexwHhl3TegK8XUsJJOEKVHo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/02/2015 09:44 AM, Hardik A Gohil wrote: > Hello, >=20 > Can any one explain me this script from > rules/post/ptxd_make_image_common.make used while creating root.ubifs i= mage >=20 > DOPERMISSIONS :=3D '{ \ > if ($$1 =3D=3D "f") \ > printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,= > $$2, $$3, $$4, $$2); \ > if ($$1 =3D=3D "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 --=20 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 | --mx3UCxj03uexwHhl3TegK8XUsJJOEKVHo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJV5rCtAAoJEP5prqPJtc/H004H/jRQwjdgfDer/3Vca5UW0p6N uCqr3ecn93ZPMNbjWnWCytrCsm15QZS6gfg+WRMAVxiUmh+u0r8jlFwT807a8cq2 8QYUaqhkFkhQJZzAF0rCAR/KxXPiJl52UJGv+22DkUt6qTBVTG61FU1fU6xvQs0A Yc5vi1gJvgZZa6DQSvM0BrG8cRF9bZr28AQBY/55+gOoaVdH5x/DASNkawxKD5Qq t1NVB/N79k1aRHv9VHSMWUYc9toe//bGjB2n0sB/oEWgDhfEZvZgnGQBmw3/DEin 8TzUWzw923lP5VrRPvP4zCRIAey1tDi01UUZ17XoRGmf0aXLq2/Whw5evcAStYA= =Z1cG -----END PGP SIGNATURE----- --mx3UCxj03uexwHhl3TegK8XUsJJOEKVHo-- --===============0249839607== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============0249839607==--