<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Archive_stp_dxf.sh</id>
	<title>Archive stp dxf.sh - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Archive_stp_dxf.sh"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Archive_stp_dxf.sh&amp;action=history"/>
	<updated>2026-08-15T11:38:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Archive_stp_dxf.sh&amp;diff=10145&amp;oldid=prev</id>
		<title>Andrey.filippov at 05:04, 12 November 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Archive_stp_dxf.sh&amp;diff=10145&amp;oldid=prev"/>
		<updated>2011-11-12T05:04:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:04, 12 November 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** -----------------------------------------------------------------------------**&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** -----------------------------------------------------------------------------**&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;focus_tuning&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;java &lt;/del&gt;is free software: you can redistribute it and/or modify&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;archive_stp_dxf&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh &lt;/ins&gt;is free software: you can redistribute it and/or modify&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  it under the terms of the GNU General Public License as published by&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  it under the terms of the GNU General Public License as published by&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  the Free Software Foundation, either version 3 of the License, or&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**  the Free Software Foundation, either version 3 of the License, or&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrey.filippov</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Archive_stp_dxf.sh&amp;diff=10144&amp;oldid=prev</id>
		<title>Andrey.filippov: Created page with &quot;We use the following script to prepare mechanical CAD files for our wiki. Here is an example of the uploaded file set: [[Elphel_camera_parts_0353-19#0353-19-66_-_Pano_head_extern...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Archive_stp_dxf.sh&amp;diff=10144&amp;oldid=prev"/>
		<updated>2011-11-12T04:58:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;We use the following script to prepare mechanical CAD files for our wiki. Here is an example of the uploaded file set: [[Elphel_camera_parts_0353-19#0353-19-66_-_Pano_head_extern...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;We use the following script to prepare mechanical CAD files for our wiki. Here is an example of the uploaded file set: [[Elphel_camera_parts_0353-19#0353-19-66_-_Pano_head_external_body_top.2Fbottom|Pano head external body top/bottom]].&lt;br /&gt;
&lt;br /&gt;
Archived source: [[Media:archive_stp_dxf.sh.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#**&lt;br /&gt;
#** -----------------------------------------------------------------------------**&lt;br /&gt;
#** archive_stp_dxf.sh&lt;br /&gt;
#** Preparing Varicad output files output for uploadig to wiki.elphel.com:&lt;br /&gt;
#** 1 - adding license information to *.stp files output&lt;br /&gt;
#** 2 - compressing *.dwb, *.dxf and *.stp files &lt;br /&gt;
#** 3 - cropping and converting *.bmp renderings to JPEG&lt;br /&gt;
#**&lt;br /&gt;
#** Copyright (C) 2010-2011 Elphel, Inc.&lt;br /&gt;
#**&lt;br /&gt;
#** -----------------------------------------------------------------------------**&lt;br /&gt;
#**  &lt;br /&gt;
#**  focus_tuning.java is free software: you can redistribute it and/or modify&lt;br /&gt;
#**  it under the terms of the GNU General Public License as published by&lt;br /&gt;
#**  the Free Software Foundation, either version 3 of the License, or&lt;br /&gt;
#**  (at your option) any later version.&lt;br /&gt;
#**&lt;br /&gt;
#**  This program is distributed in the hope that it will be useful,&lt;br /&gt;
#**  but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
#**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
#**  GNU General Public License for more details.&lt;br /&gt;
#**&lt;br /&gt;
#**  You should have received a copy of the GNU General Public License&lt;br /&gt;
#**  along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;br /&gt;
#** -----------------------------------------------------------------------------**&lt;br /&gt;
&lt;br /&gt;
#Replacing description and organization tags in STEP 3D files. &lt;br /&gt;
#Varicad outputs them as:&lt;br /&gt;
#...&lt;br /&gt;
#FILE_DESCRIPTION(&lt;br /&gt;
#/* description */ (&amp;#039;VariCAD 2010-3.03 AP-214&amp;#039;),&lt;br /&gt;
#/* implementation_level */ &amp;#039;2;1&amp;#039;);&lt;br /&gt;
#&lt;br /&gt;
#FILE_NAME(&lt;br /&gt;
#/* name */ &amp;#039;0353-22-10-test-load-saved&amp;#039;,&lt;br /&gt;
#/* time_stamp */ &amp;#039;2011-10-13T17:21:56-06:00&amp;#039;,&lt;br /&gt;
#/* author */ (&amp;#039;&amp;#039;),&lt;br /&gt;
#/* organization */ (&amp;#039;&amp;#039;),&lt;br /&gt;
if [ -n &amp;quot;$1&amp;quot; ]; then&lt;br /&gt;
  DESCRIPTION=&amp;quot;(C) Elphel, Inc. 2011. Licensed under CERN OHL v.1.1 or later, see http://ohwr.org/cernohl&amp;quot;;&lt;br /&gt;
  ORGANIZATION=&amp;quot;Elphel, Inc&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Adding &amp;gt;$DESCRIPTION&amp;lt; and &amp;gt;$ORGANIZATION&amp;lt; to &amp;gt;$1&amp;lt;&amp;quot;&lt;br /&gt;
  mv $1 $1.original&lt;br /&gt;
  cat $1.original | sed -e &amp;quot;s#\* description \*/ [(]&amp;#039;[^&amp;#039;]*&amp;#039;[)]#* description */ (&amp;#039;$DESCRIPTION&amp;#039;)#g&amp;quot; | sed -e &amp;quot;s#\* organization \*/ [(]&amp;#039;[^&amp;#039;]*&amp;#039;[)]#* organization */ (&amp;#039;$ORGANIZATION&amp;#039;)#g&amp;quot; &amp;gt; $1&lt;br /&gt;
  tar -czvf $1.tar.gz $1&lt;br /&gt;
  mv $1.original $1&lt;br /&gt;
else&lt;br /&gt;
  find . -maxdepth 1 -iname &amp;#039;*.stp&amp;#039; -exec $0 &amp;#039;{}&amp;#039; \;&lt;br /&gt;
  find . -maxdepth 1 -iname &amp;#039;*.dxf&amp;#039; -exec tar &amp;#039;-czvf&amp;#039; &amp;#039;{}&amp;#039;.tar.gz &amp;#039;{}&amp;#039; \;&lt;br /&gt;
  find . -maxdepth 1 -iname &amp;#039;*.dwb&amp;#039; -exec tar &amp;#039;-czvf&amp;#039; &amp;#039;{}&amp;#039;.tar.gz &amp;#039;{}&amp;#039; \;&lt;br /&gt;
  mogrify -trim -format jpeg *.bmp&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrey.filippov</name></author>
	</entry>
</feed>