From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yk0-f173.google.com ([209.85.160.173]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZX2iN-0004Kx-QV for ptxdist@pengutronix.de; Wed, 02 Sep 2015 09:44:17 +0200 Received: by ykei199 with SMTP id i199so1713851yke.0 for ; Wed, 02 Sep 2015 00:44:08 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 2 Sep 2015 15:44:08 +0800 Message-ID: From: Hardik A Gohil Subject: [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="===============0234775218==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0234775218== Content-Type: multipart/alternative; boundary=001a11c041beeba808051ebed46d --001a11c041beeba808051ebed46d Content-Type: text/plain; charset=UTF-8 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);}' -- Regards Hardik A Gohil Willowglen Msc Bhd --001a11c041beeba808051ebed46d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Can any one explain me this scrip= t from rules/post/ptxd_make_image_common.make used while creating root.ubif= s image

DOPERMISSIONS :=3D '{=C2=A0=C2=A0=C2=A0=C2=A0 \
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if ($$1 =3D=3D "f") \
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 printf("chmod %s \".%s\"; chown %s.%s \"= ;.%s\";\n", $$5, $$2, $$3, $$4, $$2);=C2=A0=C2=A0=C2=A0 \
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if ($$1 =3D=3D "n") \
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 printf("rm -f \".%s\"; mkdir -p \".`dir= name \"%s\"`\"; mknod -m %s \".%s\" %s %s %s; chow= n %s.%s \".%s\";\n", $$2, $$2, $$5, $$2, $$6, $$7, $$8, $$3,= $$4, $$2);}'


--
Regards
Hardik A Gohil
Willowglen Msc Bhd

=
--001a11c041beeba808051ebed46d-- --===============0234775218== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============0234775218==--