github.com/hugh712/snapd@v0.0.0-20200910133618-1a99902bd583/generate-packaging-dir (about) 1 #!/bin/sh 2 set -eu 3 4 # shellcheck disable=SC1091 5 . /etc/os-release 6 7 # FIXME: 8 # once we support something other than ubuntu this needs to become 9 # smarter: 10 # - debian-sid does not have VERSION_ID, probably best to grep 11 # /etc/apt/sources.list there 12 # - rpm systems do not need the debian dir :) 13 14 # update symlink 15 rm -f debian 16 ln -s "packaging/${ID}-${VERSION_ID}" debian 17