From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 31 Jan 2007 19:30:39 +0300 From: =?koi8-r?B?5MXOydMg883J0s7P1w==?= To: devel@lists.altlinux.org Message-ID: <20070131163039.GA31234@mw.local.seiros.ru> References: <679044850701310221i4bec3d88rfcbf964530ee018c@mail.gmail.com> <20070131114227.GE6627@mw.local.seiros.ru> <45C08B0B.7060508@altlinux.org> <20070131124311.GG6627@mw.local.seiros.ru> <679044850701310454o5c431f18xf2aa8780c59476e5@mail.gmail.com> <20070131140905.GB12755@mw.local.seiros.ru> <679044850701310622r265d0089k51f6014808c5b1d1@mail.gmail.com> <20070131151653.GB21221@mw.local.seiros.ru> <679044850701310727x47f5dcfcqc5d5d344723ca13a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <679044850701310727x47f5dcfcqc5d5d344723ca13a@mail.gmail.com> Subject: Re: [devel] ~/.config/ (was gear-tarimport) X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 16:30:48 -0000 Archived-At: List-Archive: List-Post: --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2007 at 06:27:47PM +0300, Damir Shayhutdinov wrote: >> =F1 =CF=C2 =DC=D4=CF=CD =C4=CF=CC=C7=CF =C4=D5=CD=C1=CC. =E9 =CE=C5 =DA= =CE=C1=C0 =CB=C1=CB =C4=C5=CC=C1=D4=D8 =D0=D2=C1=D7=C9=CC=D8=CE=C5=C5. >> =F1 =CD=CF=C7=D5 =CB=CC=C1=D3=D4=D8 =D0=C5=D2=C5=CD=C5=CE=CE=D5=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D3=D4=C1=D4=C9=CB=D5. > DS>> =E9 =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =DE=D4=CF =C5=D3=CC=C9 =D5 =CD=C5= =CE=D1 XFG_HOME_CONFIG=3D$HOME, =D4=CF =D7=D3=C5 =CD=CF=C9 > DS>> .dotfiles =C2=D5=C4=D5=D4 =D0=C5=D2=C5=C9=CD=C5=CE=CF=D7=C1=CE=D9 = =D7 dotfiles =C9 =C2=D5=C4=D5=D4 =D7=C9=C4=CE=D9 =D7=C5=DA=C4=C5? > DS>> =EE=C5=D0=CF=D2=D1=C4=CF=CB! >> =F0=D2=C9=CE=D1=D4=CF! =F7 =D3=CC=D5=DE=C1=C5 XFG_HOME_CONFIG=3D$HOME = =C4=C5=CA=D3=D4=D7=C9=D4=C5=CC=D8=CE=CF =CE=C9=CB=C1=CB=CF=CA =CC=CF=C7=C9= =CB=C9 >> =D7=CB=CC=C0=DE=C1=D4=D8=D3=D1 =CE=C5 =C4=CF=CC=D6=CE=CF. >> =EB=C1=CB =CD=CE=C5 =D0=D2=CF=D7=C5=D2=C9=D4=D8 =DC=D4=CF =D2=C1=D7=C5= =CE=D3=D4=D7=CF? DS> char* xfg_home =3D getenv("XFG_HOME_CONFIG"); DS> char* home =3D getenv("HOME"); DS> if (xfg_home && home && strcmp(home, xfg_home) =3D=3D 0) DS> { DS> /* match */ DS> } =F7=CF=D0=D2=CF=D3 -- =C5=D3=CC=C9 =CD=D9 _=CE=C5 =CE=C1=DB=CC=C9_ =C6=C1= =CA=CC, =D4=CF =C5=D3=D4=D8 =C5=C7=CF =C2=D5=C4=D5=D4 =D3=CF=DA=C4=C1=D7=C1= =D4=D8. =FE=D4=CF =C4=C5=CC=C1=D4=D8 =D7 =D3=CC=D5=DE=C1=C5 XFG_HOME_CONFIG=3D=3DHOME, =D7=CF=DA=D7=D2=C1=DB=C1= =D4=D8 =C9=CD=D1 =D3 =D4=CF=DE=CB=CF=CA, =C9=CC=C9 =C2=C5=DA? =ED=CE=C5 =CB=C1=D6=C5=D4=D3=D1 =DE=D4=CF =C2=C5=DA, =D4=C1=CB =DE=D4=CF fi= xed. =F3=CD. git. >> =E5=DD=A3 =D7=CF=D0=D2=CF=D3, XFG_HOME_CONFIG =CD=CF=D6=C5=D4 =C2=D9=D4= =D8 =C9 "~/.blablabla". =F4=C9=CC=D8=C4=D5 =DE=C5=CD >> =D0=D2=C1=D7=C9=CC=D8=CE=CF =D2=C1=D3=CB=D2=D9=D7=C1=D4=D8? DS> =F7=CF=CF=C2=DD=C5 =D0=D2=C9=CE=D1=D4=CF =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1= =D4=D8 $HOME =D7 =CB=C1=DE=C5=D3=D4=D7=C5 =DA=C1=CD=C5=CE=D9 =D4=C9=CC=D8= =C4=C5. DS> =E9=ED=E8=EF =CE=C5 =CE=C1=C4=CF =C5=C5 =D2=C1=D3=CB=D2=D9=D7=C1=D4=D8. DS> =F0=D5=D3=D4=D8 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=C9 =D0=C9=DB=D5=D4 DS> export XFG_HOME_CONFIG=3D"$HOME/.mymegaconfigdir" =F0=CF=CE=D1=CC. --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E4=C5=CE=C9=D3 http://freesource.info ---------------------------------------------------------------------------- =F2=C9=D3=CB=D5=C0 =D0=CF=CC=D5=DE=C9=D4=D8 =DE=C5=D2=CE=D9=CA =DB=C1=D2 = =CF=D4 ldv, =CE=CF =CE=C5 =D5=C4=C5=D2=D6=D5=D3=D8. -- aen in devel@ --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFwMQvPuR8c4jhFKIRAgCGAKCdqJjpSWnx9n0WYFrm+mg+6L0inwCgov6Q 9fN/zsezIfQg3D5JaexvB3Q= =ew6y -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--