Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agkyra
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
agkyra
Commits
86b7ee0a
Commit
86b7ee0a
authored
9 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
Script to make tarball
parent
f11ae865
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
agkyra/mktarball.sh
+63
-0
63 additions, 0 deletions
agkyra/mktarball.sh
with
63 additions
and
0 deletions
agkyra/mktarball.sh
0 → 100755
+
63
−
0
View file @
86b7ee0a
#!/bin/bash
# Copyright (C) 2015 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CURPWD
=
$(
pwd
)
cd
"
$(
dirname
"
$0
"
)
"
declare
-A
nwjsfile
nwjsfile[win64]
=
"nwjs-v0.12.1-win-x64.zip"
nwjsfile[osx64]
=
"nwjs-v0.12.1-osx-x64.zip"
nwjsfile[linux64]
=
"nwjs-v0.12.1-linux-x64.tar.gz"
nwjsfile[win32]
=
"nwjs-v0.12.1-win-ia32.zip"
nwjsfile[osx32]
=
"nwjs-v0.12.1-osx-ia32.zip"
nwjsfile[linux32]
=
"nwjs-v0.12.1-linux-ia32.tar.gz"
if
[[
-z
$1
]]
;
then
echo
"Select one of:"
${
!nwjsfile[@]
}
exit
fi
ID
=
agkyra-
$(
date
+%s
)
TMPDIR
=
/tmp/
$ID
TMPAGKYRA
=
$TMPDIR
/agkyra
mkdir
-p
$TMPAGKYRA
cp
launch
$TMPAGKYRA
cp
README.md
$TMPAGKYRA
cp
COPYING
$TMPAGKYRA
git ls-files agkyra | xargs
cp
--parents
-t
$TMPAGKYRA
cd
$TMPAGKYRA
/agkyra/gui
zip
-r
../gui.nw
.
cd
..
&&
rm
-r
gui
os
=
$1
file
=
${
nwjsfile
[
$os
]
}
url
=
"http://dl.nwjs.io/v0.12.1/"
$file
cd
$TMPAGKYRA
/agkyra
wget
$url
if
[[
"
$os
"
=
~ ^
(
linux64|linux32
)
$
]]
;
then
mkdir
nwjs
tar
xzf
$file
--strip-components
1
-C
nwjs
else
unzip
-d
nwjs
"
$file
"
&&
f
=(
nwjs/
*
)
&&
mv
nwjs/
*
/
*
nwjs
&&
rmdir
"
${
f
[@]
}
"
fi
rm
$file
cd
$TMPDIR
tar
czf
$CURPWD
/agkyra-snapshot-
${
os
}
.tar.gz agkyra
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment