Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
02546c56
Commit
02546c56
authored
Dec 20, 2016
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roll-tarballs.sh: Adapt to recent changes in nx-libs, keep legacy support for…
roll-tarballs.sh: Adapt to recent changes in nx-libs, keep legacy support for older 3.6.x and 3.5.x releases.
parent
9acd13e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
10 deletions
+49
-10
roll-tarballs.sh
roll-tarballs.sh
+49
-10
No files found.
roll-tarballs.sh
View file @
02546c56
...
...
@@ -36,21 +36,22 @@ NULL=""
test
-d
".git"
||
usage
RELEASE
=
"
$1
"
test
-n
"
${
RELEASE
}
"
||
usage
CHECKOUT
=
"
$2
"
test
-n
"
$
CHECKOUT
"
||
usage
MODE
=
"
$2
"
test
-n
"
$
MODE
"
||
usage
if
[
"x
$CHECKOUT
"
=
"xserver"
]
||
[
"x
${
CHECKOUT
}
"
=
"xfull"
]
;
then
if
[
"x
$MODE
"
=
"xserver"
]
||
[
"x
${
MODE
}
"
=
"xfull"
]
;
then
MODE
=
"full"
CHECKOUT
=
"redist-server/
${
RELEASE
}
"
RELEASE_SUFFIX
=
'-full'
elif
[
"x
$
CHECKOUT
"
=
"xclient"
]
||
[
"x
${
CHECKOUT
}
"
=
"xlite"
]
;
then
elif
[
"x
$
MODE
"
=
"xclient"
]
||
[
"x
${
MODE
}
"
=
"xlite"
]
;
then
MODE
=
"lite"
CHECKOUT
=
"redist-client/
${
RELEASE
}
"
RELEASE_SUFFIX
=
'-lite'
else
usage
fi
CHECKOUT
=
"
${
RELEASE
}
"
if
[
x
"
$RELEASE
"
==
"xHEAD"
]
;
then
CHECKOUT
=
"refs/heads/
$(
git rev-parse
--abbrev-ref
HEAD
)
"
fi
...
...
@@ -63,7 +64,7 @@ if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then
exit
1
fi
TARGETDIR
=
".."
TARGETDIR
=
"..
/..
"
MANIFEST
=
"
$(
mktemp
)
"
TEMP_DIR
=
"
$(
mktemp
-d
)
"
...
...
@@ -94,31 +95,69 @@ mkdir -p "doc/applied-patches"
# prepare patches for lite and full tarball
if
[
"x
$MODE
"
=
"xfull"
]
;
then
rm
-f
"README.md"
rm
-Rf
"doc/_attic_/"
rm
-f
".gitignore"
rm
-f
"nxcomp/.gitignore"
rm
-f
"nxcompext/.gitignore"
rm
-f
"nxcompshad/.gitignore"
rm
-f
"nxproxy/.gitignore"
rm
-f
"nx-X11/lib/X11/.gitignore"
rm
-f
"nx-X11/.gitignore"
rm
-f
"nx-X11/programs/Xserver/composite/.gitignore"
rm
-f
"nx-X11/programs/Xserver/hw/nxagent/.gitignore"
rm
-f
"nx-X11/programs/Xserver/.gitignore"
rm
-f
"nx-X11/programs/Xserver/include/.gitignore"
rm
-f
"nx-X11/programs/Xserver/GL/.gitignore"
rm
-f
"nx-X11/include/.gitignore"
# this is for 3.5.0.x only...
cat
"debian/patches/series"
|
sort
|
grep
-v
'^#'
| egrep
"([0-9]+(_|-).*
\.
(full|full
\+
lite)
\.
patch)"
|
while
read
file
do
cp
-v
"debian/patches/
$file
"
"doc/applied-patches/"
echo
"
${
file
##*/
}
"
>>
"doc/applied-patches/series"
done
else
rm
-f
"bin/nxagent"
rm
-f
"README.md"
rm
-f
"bin/nxagent"
*
rm
-Rf
"nxcompshad"
*
rm
-Rf
"nx-X11"
*
rm
-Rf
"etc"
*
rm
-f
"generate-symbol-docs.sh"
rm
-Rf
"testscripts/"
*
nxagent
*
rm
-Rf
"testscripts/"
slave
*
rm
-Rf
"doc/libNX_X11/"
rm
-Rf
"doc/nxagent/"
rm
-Rf
"doc/nxcompext/"
rm
-Rf
"doc/nxcompshad/"
rm
-Rf
"doc/_attic_/"
rm
-f
".gitignore"
rm
-f
"nxcomp/.gitignore"
rm
-f
"nxproxy/.gitignore"
# for old nx-libs releases, re-arranged since 3.5.99.3
rm
-Rf
"doc/nx-X11_vs_XOrg69_patches"
*
rm
-Rf
"doc/X11-symbols"
*
rm
-f
"README.keystrokes"
rm
-Rf
"nxcompext"
*
mv
LICENSE.nxcomp LICENSE
# this is for 3.5.0.x only...
cat
"debian/patches/series"
|
sort
|
grep
-v
'^#'
| egrep
"([0-9]+(_|-).*
\.
full
\+
lite
\.
patch)"
|
while
read
file
do
cp
-v
"debian/patches/
$file
"
"doc/applied-patches/"
echo
"
${
file
##*/
}
"
>>
"doc/applied-patches/series"
done
fi
# apply all patches shipped in debian/patches and create a copy of them that we ship with the tarball
if
[
-s
"doc/applied-patches/series"
]
;
then
QUILT_PATCHES
=
"doc/applied-patches"
quilt
--quiltrc
/dev/null push
-a
-q
else
echo
"No patches applied at all. Very old release?"
fi
# remove folders that we do not want to roll into the tarball
...
...
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