Merge branch 'update_do_debian_release' into storageareas
This commit is contained in:
commit
01c4242d2d
|
@ -287,19 +287,19 @@ To build the latest master snapshot:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
./do_debian_package.sh `lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'` `date +%Y%m%d`01 local master
|
./do_debian_package.sh --snapshot=NOW --branch=master --type=local
|
||||||
|
|
||||||
|
|
||||||
To build the latest stable release:
|
To build the latest stable release:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
./do_debian_package.sh `lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'` `date +%Y%m%d`01 local stable
|
./do_debian_package.sh --snapshot=stable --type=local
|
||||||
|
|
||||||
|
|
||||||
Note that the ``lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'``
|
Note that the distribution will be guessed using ``lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'``
|
||||||
part simply extracts your distribution name - like "vivid", "trusty" etc. You
|
which simply extracts your distribution name - like "vivid", "trusty" etc. You
|
||||||
can always replace it by your distro name if you know it. As far as the script
|
can always specify it using --distro=your distro name if you know it. As far as the script
|
||||||
goes, it checks if your distro is "trusty" in which case it pulls in pre-systemd
|
goes, it checks if your distro is "trusty" in which case it pulls in pre-systemd
|
||||||
release configurations and if its not "trusty" it assumes its based on systemd
|
release configurations and if its not "trusty" it assumes its based on systemd
|
||||||
and pulls in systemd related config files.
|
and pulls in systemd related config files.
|
||||||
|
|
|
@ -63,6 +63,11 @@ if [ "$TYPE" == "" ]; then
|
||||||
TYPE="source";
|
TYPE="source";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
if [ "$DISTRO" == "" ]; then
|
||||||
|
DISTRO=`lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'`;
|
||||||
|
echo "Defaulting to $DISTRO for distribution";
|
||||||
|
fi;
|
||||||
|
|
||||||
# Release is a special mode... it uploads to the release ppa and cannot have a snapshot
|
# Release is a special mode... it uploads to the release ppa and cannot have a snapshot
|
||||||
if [ "$RELEASE" != "" ]; then
|
if [ "$RELEASE" != "" ]; then
|
||||||
if [ "$SNAPSHOT" != "" ]; then
|
if [ "$SNAPSHOT" != "" ]; then
|
||||||
|
|
Loading…
Reference in New Issue