Browse Source

Enable rpmstuff and debstuff specific tokens

Can be useful in cases when Debian and RHEL/Fedora/... paths differ.
Alois Mahdal 7 years ago
parent
commit
fdcf53e893
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/include/build.sh

+ 3
- 2
src/include/build.sh View File

28
         MKIT_COMMON)    _expand_tokens "tokens" ;;
28
         MKIT_COMMON)    _expand_tokens "tokens" ;;
29
         markdown)       _expand_includes | _expand_tokens "tokens" ;;
29
         markdown)       _expand_includes | _expand_tokens "tokens" ;;
30
         rpmstuff)       _expand_tokens "tokens" "rpmstuff:tokens" ;;
30
         rpmstuff)       _expand_tokens "tokens" "rpmstuff:tokens" ;;
31
+        debstuff)       _expand_tokens "tokens" "debstuff:tokens" ;;
31
         *)              die "unknown file type: $ftype" ;;
32
         *)              die "unknown file type: $ftype" ;;
32
     esac
33
     esac
33
 }
34
 }
188
         do
189
         do
189
             dftgt="debian/${dfsrc#$debian_skel}"
190
             dftgt="debian/${dfsrc#$debian_skel}"
190
             mkdir -p "$(dirname "$dftgt")"
191
             mkdir -p "$(dirname "$dftgt")"
191
-            _build1 "$dfsrc" "$dftgt"
192
+            _build1 "$dfsrc" "$dftgt" debstuff
192
         done
193
         done
193
     echo debian >> "$MKIT_LOCAL/built.lst"
194
     echo debian >> "$MKIT_LOCAL/built.lst"
194
 }
195
 }
227
     specsrc="$(ini 1value "dist:rpmstuff")"
228
     specsrc="$(ini 1value "dist:rpmstuff")"
228
     test -n "$specsrc" || die "dist:rpmstuff not specified"
229
     test -n "$specsrc" || die "dist:rpmstuff not specified"
229
     test -f "$specsrc" || die "specfile template not found: $specsrc"
230
     test -f "$specsrc" || die "specfile template not found: $specsrc"
230
-    _build1 "$specsrc" "$specname"
231
+    _build1 "$specsrc" "$specname" rpmstuff
231
 }
232
 }