You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

cinnamon.sh 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/bin/sh
  2. set -e
  3. if [ -f ./debian/rules ]; then
  4. echo "Running debuild clean and delete the old debian/rules now. "
  5. echo "Please run bootstrap again!"
  6. [ -f ./debian/changelog ] && debuild -d clean
  7. rm -f debian/rules
  8. exit 1
  9. fi
  10. if [ -f VERSION ]; then
  11. . ./VERSION
  12. else
  13. echo "No VERSION-File, exit!"
  14. exit 1
  15. fi
  16. if [ -f FLAVOUR ]; then
  17. . ./FLAVOUR
  18. else
  19. echo "No FLAVOUR-File, exit!"
  20. exit 1
  21. fi
  22. # clean up obsolete stuff
  23. rm -f debian/install \
  24. debian/ĺinks \
  25. debian/postinst \
  26. debian/postrm \
  27. debian/prerm \
  28. debian/preinst
  29. [ -d ./debian ] || exit 1
  30. if [ ! -e ./debian/changelog ]; then
  31. sed -e "s/\@CODENAME_SAFE\@/${NAME}/g" \
  32. -e "s/\@CODENAME\@/${DESCRIPTION}/g" \
  33. -e "s/\@VERSION\@/${VERSION}/g" \
  34. -e "s/\@FLAVOUR\@/${FLAVOUR}/g" \
  35. -e "s/\@DISPLAY\@/${DISPLAY}/g" \
  36. templates/debian/changelog \
  37. > ./debian/changelog
  38. fi
  39. sed -e "s/\@CODENAME_SAFE\@/${NAME}/g" \
  40. -e "s/\@CODENAME\@/${DESCRIPTION}/g" \
  41. -e "s/\@VERSION\@/${VERSION}/g" \
  42. -e "s/\@FLAVOUR\@/${FLAVOUR}/g" \
  43. -e "s/\@DISPLAY\@/${DISPLAY}/g" \
  44. templates/debian/${FLAVOUR}-control \
  45. > ./debian/control
  46. sed -e "s/\@CODENAME_SAFE\@/${NAME}/g" \
  47. -e "s/\@CODENAME\@/${DESCRIPTION}/g" \
  48. -e "s/\@VERSION\@/${VERSION}/g" \
  49. -e "s/\@FLAVOUR\@/${FLAVOUR}/g" \
  50. -e "s/\@DISPLAY\@/${DISPLAY}/g" \
  51. templates/debian/rules \
  52. > ./debian/rules
  53. chmod 755 ./debian/rules
  54. sed -e "s/\@CODENAME_SAFE\@/${NAME}/g" \
  55. -e "s/\@CODENAME\@/${DESCRIPTION}/g" \
  56. -e "s/\@VERSION\@/${VERSION}/g" \
  57. -e "s/\@FLAVOUR\@/${FLAVOUR}/g" \
  58. -e "s/\@DISPLAY\@/${DISPLAY}/g" \
  59. templates/debian/source/options \
  60. > ./debian/source/options