Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix get-orig-source-script
· 8e8885d2
Andreas Tille
authored
Jul 07, 2018
8e8885d2
Get upstream source with proper version
· 9538252c
Andreas Tille
authored
Jul 09, 2018
9538252c
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
9538252c
spaced (1.0.2+dfsg-2) UNRELEASED; urgency=medium
* Team upload.
* Fix get-orig-source script
-- Andreas Tille <tille@debian.org> Sat, 07 Jul 2018 14:53:39 +0200
spaced (1.0.2+dfsg-1) unstable; urgency=medium
* Initial release (Closes: #815672)
...
...
debian/copyright
View file @
9538252c
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: spaced
Source: http://spaced.gobics.de/content/spaced
-protein_dna
.tar.gz
Source: http://spaced.gobics.de/content/spaced.tar.gz
Files-Excluded: spaced
Files: *
...
...
debian/get-orig-source
View file @
9538252c
...
...
@@ -26,34 +26,37 @@ else
fi
fi
SOURCE_URL
=
`
awk
'/^Source/ {print $2}'
cat
debian/copyright
`
SOURCE_URL
=
`
awk
'/^Source/ {print $2}'
debian/copyright
`
EXCLUDE
=
`
grep
'Files-Excluded'
debian/copyright |
cut
-d
' '
-f2-
`
UPSTREAMTARBALL
=
"spaced-protein_dna.tar.gz"
UPSTREAMTARBALL
=
`
echo
$SOURCE_URL
|
sed
's#^.*/\([^/]\+\)#\1#'
`
wget SOURCE_URL
mkdir
-p
../tarballs
rm
-rf
../tarballs/
*
OLDPWD
=
$PWD
cd
../tarballs
mkdir
"spaced-legacy"
tar
-xaf
$OLDPWD
/
${
UPSTREAMTARBALL
}
-C
spaced-legacy
rm
-rf
${
NAME
}
wget
-q
-N
$SOURCE_URL
set
-x
tar
-xaf
${
UPSTREAMTARBALL
}
# Remove useless binaries
UPSTREAMTARDIR
=
`
find
.
-mindepth
1
-maxdepth
1
-type
d
-name
"
${
NAME
}
*"
`
cd
"
${
UPSTREAMTARDIR
}
"
rm
-f
${
EXCLUDE
}
# obtain version from file variance.h
VERSION
=
`
grep
'@version: [0-9][0-9.]\+ [0-9/]\+'
$(
find
.
-name
variance.h
)
|
sed
's#.*@version: \([0-9][0-9.]\+\) \([0-9]\+\)/\([0-9]\+\)#\1-\3\2#'
`
cd
..
# Fix upstreams non-Gnu naming scheme
TARDIR
=
${
NAME
}
-
${
VERSION
}
UPSTREAMTARDIR
=
`
find
.
-mindepth
1
-maxdepth
1
-type
d
`
if
[
"
${
UPSTREAMTARDIR
}
"
!=
"
${
TARDIR
}
"
]
;
then
mv
"
${
UPSTREAMTARDIR
}
"
"
${
TARDIR
}
"
fi
# Remove useless binaries
(
cd
"
${
TARDIR
}
"
&&
rm
-f
${
EXCLUDE
}
)
# rebuild package
GZIP
=
"--best --no-name"
tar
--owner
=
root
--group
=
root
--mode
=
a+rX
-caf
"
$NAME
"
_
"
$VERSION
"
.orig.tar.
${
COMPRESS
}
"
${
TARDIR
}
"
rm
-rf
${
TARDIR
}
mv
"
$NAME
"
_
"
$VERSION
"
.orig.tar.
${
COMPRESS
}
..
#
mv "$NAME"_"$VERSION".orig.tar.${COMPRESS} ..