Kaynağa Gözat

Don't always add LICENSE.md to dist.tarball

Alois Mahdal 7 yıl önce
ebeveyn
işleme
834dc80d9f
2 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 1
    0
      src/include/build.sh
  2. 2
    2
      src/newstub

+ 1
- 0
src/include/build.sh Dosyayı Görüntüle

@@ -81,6 +81,7 @@ _expand_tokens() {
81 81
         done
82 82
         echo "s|__MKIT_PROJ_NAME__|$(ini 1value project:name | _qfs)|g;"
83 83
         echo "s|__MKIT_PROJ_CODENAME__|$(ini 1value project:codename | _qfs)|g;"
84
+        echo "s|__MKIT_PROJ_LICENSE__|$(ini 1value project:license | _qfs)|g;"
84 85
         echo "s|__MKIT_PROJ_PKGNAME__|$(ini 1value project:pkgname | _qfs)|g;"
85 86
         echo "s|__MKIT_PROJ_TAGLINE__|$(ini 1value project:tagline | _qfs)|g;"
86 87
         echo "s|__MKIT_PROJ_MAINTAINER__|$(ini 1value project:maintainer | _qfs)|g;"

+ 2
- 2
src/newstub Dosyayı Görüntüle

@@ -75,7 +75,7 @@ deploy() {
75 75
             test -n "$RelDst"       && echo "    reldst      = $RelDst"
76 76
             echo ""
77 77
             echo "[dist]"
78
-            echo "    tarball = LICENSE.md"
78
+            $MkLicense  && echo "    tarball = LICENSE.md"
79 79
             $MkMakefile && echo "    tarball = Makefile"
80 80
             $MkReadme   && echo "    tarball = README.md"
81 81
             echo "    tarball = mkit.ini"
@@ -563,7 +563,7 @@ main() {
563 563
     esac done
564 564
     PackageName="$1"
565 565
     test -n "$PackageName" || usage
566
-    if test -n "$License"; then
566
+    if $MkLicense; then
567 567
         known_licenses | grep -qxF "$License" \
568 568
          || die "unknown license (use -L to get list): $License"
569 569
         MkLicense=true