1
0

vblade.init.generate 647 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. set -e
  3. TEMPDIR="$(mktemp --directory --tmpdir "vblade.init.generate.$$.XXXXX")"
  4. trap "cd / ; rm -rf \"$TEMPDIR\"" EXIT
  5. run () {
  6. local OUTPUT="$1"
  7. echo "I: Processing $OUTPUT"
  8. TEMP="$TEMPDIR/$OUTPUT"
  9. shift
  10. tpage "$@" vblade.init.in>"$TEMP"
  11. sh -n "$TEMP"
  12. if [ -f "$OUTPUT" ] && cmp -s "$TEMP" "$OUTPUT" ; then
  13. echo "I: $OUTPUT is fresh"
  14. else
  15. cp "$TEMP" "$OUTPUT"
  16. fi
  17. }
  18. # run 'vblade.init.debian' --define lsb=1 --define control=ssd
  19. run 'vblade.init.lsb-daemon' --define lsb=1 --define control=daemon
  20. run 'vblade.init.daemon' --define lsb= --define control=daemon