We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7489d commit b6e3de5Copy full SHA for b6e3de5
ci/cvmfs-autofs/deb.sh
@@ -11,7 +11,7 @@ SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd)
11
12
usage() {
13
echo "Build the Debian stretch autofs version for older deb based distros"
14
- echo "Usage: $0 <work dir>"
+ echo "Usage: $0 <work dir> <result dir>"
15
exit 1
16
}
17
@@ -37,7 +37,15 @@ echo "done"
37
38
echo -n "getting autofs source package"
39
cd ${workdir}/src
40
-apt-get source autofs/stretch
+codename=$(lsb_release -sc)
41
+if [ "x$codename" = "xjessie" ]; then
42
+ apt-get source autofs/stretch
43
+elif [ "x$codename" = "xxenial" ]; then
44
+ apt-get source autofs/zesty
45
+else
46
+ echo "Distribution $codename not supported!"
47
+ exit 1
48
+fi
49
srcdir=$(find . -mindepth 1 -maxdepth 1 -type d)
50
cd $srcdir
51
dpkg-checkbuilddeps
0 commit comments