Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
3f4b95b8
Unverified
Commit
3f4b95b8
authored
Nov 05, 2018
by
Steven Allen
Committed by
GitHub
Nov 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5718 from ipfs/fix/makesource
fix the maketarball script
parents
7e26ef58
f2d645f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
bin/maketarball.sh
bin/maketarball.sh
+7
-7
No files found.
bin/maketarball.sh
View file @
3f4b95b8
...
...
@@ -5,18 +5,18 @@
set
-euo
pipefail
IFS
=
$'
\n\t
'
OUTPUT
=
"
${
1
:-
go
-ipfs-source.tar.gz
}
"
OUTPUT
=
"
$(
readlink
-f
"
${
1
:-
go
-ipfs-source.tar.gz
}
"
)
"
TMPDIR
=
"
$(
mktemp
-d
)
"
NEWIPFS
=
"
$TMPDIR
/github.com/ipfs/go-ipfs"
NEWIPFS
=
"
$TMPDIR
/
src/
github.com/ipfs/go-ipfs"
mkdir
-p
"
$NEWIPFS
"
cp
-r
.
"
$NEWIPFS
"
(
cd
"
$NEWIPFS
"
&&
echo
$PWD
&&
GOPATH
=
"
$TMPDIR
"
gx
install
--local
&&
(
git rev-parse
--short
HEAD
||
true
)
>
.tarball
&&
tar
-czf
"
$OUTPUT
"
--exclude
=
"./.git"
.
echo
$PWD
&&
GOPATH
=
"
$TMPDIR
"
gx
install
--local
&&
(
git rev-parse
--short
HEAD
||
true
)
>
.tarball
&&
chmod
-R
u
=
rwX,go
=
rX
"
$NEWIPFS
"
# normalize permissions
tar
-czf
"
$OUTPUT
"
--exclude
=
"./.git"
.
)
rm
-rf
"
$TMPDIR
"
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