diff options
author | unknown <mwagner@here.mwagner.org> | 2005-02-07 02:18:12 -0600 |
---|---|---|
committer | unknown <mwagner@here.mwagner.org> | 2005-02-07 02:18:12 -0600 |
commit | e4add35d34b3d727067fee63ae409b20b641b1b2 (patch) | |
tree | 6971a6da167b1f5fc416dcfef142f4cb1a959f7c /Build-tools | |
parent | 8ebc448783e578bdcab490ce02a25e40c4f23d44 (diff) | |
download | mariadb-git-e4add35d34b3d727067fee63ae409b20b641b1b2.tar.gz |
Do-solaris-pkg:
Minor tweaks to work properly
Build-tools/Do-solaris-pkg:
Minor tweaks to work properly
Diffstat (limited to 'Build-tools')
-rw-r--r-- | Build-tools/Do-solaris-pkg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build-tools/Do-solaris-pkg b/Build-tools/Do-solaris-pkg index 374113b28a1..685a1f0923b 100644 --- a/Build-tools/Do-solaris-pkg +++ b/Build-tools/Do-solaris-pkg @@ -3,7 +3,7 @@ # Script to create Solaris packages # $INTERACTIVE= 0; -$hostname= `hostname`; +chomp ($hostname= `hostname`); $find = "/usr/bin/find"; $pkgproto = "/usr/bin/pkgproto"; $pkgmk = "/usr/bin/pkgmk -o"; @@ -75,7 +75,7 @@ $os =~ '\.'; $os = "sol$'"; chomp $os; $default{"basedir"}= "/usr/local"; -$default{"packagename"}= $fullname . '.pkg'; +$default{"packagename"}= "${fullname}.pkg"; # Check for correctness of guessed values by userinput @@ -136,6 +136,8 @@ system ("gzip /tmp/$packagename"); # Clean-up the spool area system ("(cd /var/spool/pkg; rm -rf $pkg)"); +# Clean-up the ~/packaging/ area +system ("(rm -rf mysql*)"); unlink $pkginfo; unlink $prototype; system ("mv /tmp/${packagename}.gz $pkgdir"); |