Changeset 34


Ignore:
Timestamp:
02/07/06 14:00:07 (18 years ago)
Author:
kdeugau
Message:

/trunk

Whoops, forgot some macro expansion on the pre/post (un)install
scriptlets. May need more expansions later, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r33 r34  
    682682    if ($pkg eq 'main') {
    683683      if ($preinstscript ne '') {
     684        $preinstscript = expandmacros($preinstscript,'g');
    684685        open PREINST, ">$buildroot/$pkg/DEBIAN/preinst";
    685686        print PREINST "#!/bin/sh\nset -e\n\n";
     
    689690      }
    690691      if ($postinstscript ne '') {
     692        $postinstscript = expandmacros($postinstscript,'g');
    691693        open POSTINST, ">$buildroot/$pkg/DEBIAN/postinst";
    692694        print POSTINST "#!/bin/sh\nset -e\n\n";
     
    696698      }
    697699      if ($preuninstscript ne '') {
     700        $preuninstscript = expandmacros($preuninstscript,'g');
    698701        open PREUNINST, ">$buildroot/$pkg/DEBIAN/prerm";
    699702        print PREUNINST "#!/bin/sh\nset -e\n\n";
     
    703706      }
    704707      if ($postuninstscript ne '') {
     708        $postuninstscript = expandmacros($postuninstscript,'g');
    705709        open POSTUNINST, ">$buildroot/$pkg/DEBIAN/postrm";
    706710        print POSTUNINST "#!/bin/sh\nset -e\n\n";
Note: See TracChangeset for help on using the changeset viewer.