Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mechanical-parts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
mechanical-parts
Commits
6447f39a
Commit
6447f39a
authored
Jun 10, 2015
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still initial
parent
1410aa9f
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
671 deletions
+54
-671
LICENSE
LICENSE
+15
-670
README.md
README.md
+39
-1
No files found.
LICENSE
View file @
6447f39a
This diff is collapsed.
Click to expand it.
README.md
View file @
6447f39a
#
mechanical-p
arts
#
Mechanical P
arts
Mechanical CAD files
#Work
*
When a part is ready for manufacturing manually save it to
<i>
production/
</i>
in the following formats:
*
<b>
\*
.stp
</b>
- STEP
*
<b>
\*
.igs
</b>
- IGES
*
<b>
\*
.dxf
</b>
- DXF
*
<b>
\*
.dwb
</b>
- DWB
*
<b>
\*
.pdf
</b>
- 2D drawing
*
<b>
\*
.bmp
</b>
- some view/screenshot from the CAD program
<b>
NOTE: DO NOT ADD THESE FILES TO REPOSITORY
</b>
*
On
<i>
git push
</i>
a hook will upload files to the server
*
The pattern for publishing on
[
wiki.elphel.com
]
:
> === PARTNUMBER - DESCRIPTION ===<br/>
> SOME OR NO INFO<br/>
> {{Cad4a\|PARTNUMBER}}<br/>
> \-\-\-\-
#Setup
##<i>pre-push</i> hook
###about
*
Archive all
<i>
\*
.stp,
\*
.igs,
\*
.dxf,
\*
.dwb
</i>
*
Add info to the meta header of all
<i>
\*
.pdf
</i>
*
Crop all
<i>
\*
.bmp
</i>
and convert them into jpeg.
*
Back up all of the files into
<i>
production/uploaded/
</i>
to prevent repeating the above actions
*
Upload results to a file server (
[
community.elphel.com
]
)
The hook runs at every
<i>
git push
</i>
even if there are no changes
###enable
*
Copy
<i>
githooks/pre-push
</i>
into
<i>
.git/hooks/
</i>
*
Edit
<i>
.git/hooks/pre-push
</i>
- set
<i>
remote_dir
</i>
to a proper one.
*
If the private ssh key name is not default, add -e to rsync line:
> rsync -e 'ssh -i /home/user/.ssh/key' -a -f '- /*/' . $remote_dir
*
Make
<i>
.git/hooks/pre-push
</i>
executable
[
community.elphel.com
]:
http://community.elphel.com/files/production/
[
wiki.elphel.com
]:
http://wiki.elphel.com
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment