X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-TCPREMOTEIP: 207.224.51.38 X-Authenticated-UID: jpd AT noqsi DOT com Content-Type: multipart/signed; boundary="Apple-Mail=_3059709A-BC9F-4FEC-B24E-2F541EA12681"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [geda-help] auto update a date in gschem X-Pgp-Agent: GPGMail 2.5.2 From: John Doty In-Reply-To: <20160226172744.d17641d40219170f83b5c9c8@aol.com> Date: Fri, 26 Feb 2016 09:49:07 -0700 Message-Id: References: <20160226172744 DOT d17641d40219170f83b5c9c8 AT aol DOT com> To: geda-help AT delorie DOT com X-Mailer: Apple Mail (2.1878.6) Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Apple-Mail=_3059709A-BC9F-4FEC-B24E-2F541EA12681 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Feb 26, 2016, at 9:27 AM, Davide Hug (d_hug AT aol DOT com) [via = geda-help AT delorie DOT com] wrote: > Hello. >=20 > What is the best way to keep a date up to date in a gschem title = block? I > wrote a guile function that updates all attributes = "modification-date=3D" > to the current date. Is it possible to automate the call to this = function when > the file is saved or when it is modified? >=20 > Alternatively is there a way to display a date in a ps printout? I use the following Makefile machinations: DATE=3D$(shell git log -1 --format=3D"%cd") REV=3D$(shell git describe --tags) S2PS=3Dsed -e "s/date=3D.*$$/date=3D$(DATE)/" -e = "s/rev=3D.*$$/rev=3D$(REV)/" $< >tmp.sch; \ $(GSCHEM) -p -o $@ -s print.scm tmp.sch; \ rm tmp.sch %.sym.ps : %.sym $(S2PS) %.ps : %.sch $(S2PS) PS2PDF=3Dps2pdf -sPAPERSIZE=3Dletter %.pdf : %.ps $(PS2PDF) $< With this, I can say =93make some-schematic.pdf=94 and get a pdf file = with the date and revision taken from the git design repository. >=20 > Thanks a lot > Davide >=20 John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com --Apple-Mail=_3059709A-BC9F-4FEC-B24E-2F541EA12681 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW0IIDAAoJEF1Aj/0UKykRx8QP/i7JBmQ1cZ0SlXKqEJV5ZWoD IBz9qMta65Oo31Tmud9nmg7+6RT1ymvjYyJnO7bb9z8WXiNKKmkVcxgB3xxuxp+l hUgVxvrMCKRmB5eT+7MLlmjneZumBqUwN1DEy4CsXry9qbxAi6ft6OXR3u0dNJiI nkDkT/WcycB9G4g/gpZUaFCOhpGPYlkUDpZMIP8+Hx4NcLXB5vX99hcyr0faAl8l tsm+zV3F+bWKSCyQTbwO0fuzuOc/lpEEHLnRFr6NHZYnTsySYmeJc8i8vE/DHiR8 K5S+po61QVh7eAGHgcOsQ5aOT1832Qq172dFnRR9/OKSciXV7D7HzqDWI7Sq6sqX 8GjGhMDeLjVYBV5M6MJZxyegSDi0xKn9lyxRYqC+6VC9Ka9jY/RyN0R3GqgXKMPG aNydGl2GT9LbnRUYj4eZcCzLJqOq+ywEbOGu9dFQv2eDiHPJy0RrxqJ0zU5o1V6k St0VtQZiSm2akED8qIoAXBuXbVamRoMq+o9Iala5nxsI8+CegJ1geHXvXgVR4EL/ JrVELMGMrk3Plv8UEBsEwKd6VmztANWU5lyEAGpNGEamgtsLP5zLfG1V+BOSsNXa yLrh3dOCcKrap2KftayO8SLwEIN/p8t7Us+rd+bjZdGXkDa1du1VJZZbFkrX63nR xPs8afgXC4nOgHKUVxao =kwFJ -----END PGP SIGNATURE----- --Apple-Mail=_3059709A-BC9F-4FEC-B24E-2F541EA12681--