1use ExtUtils::MakeMaker; 2 3WriteMakefile( 4 NAME => 'o2sms', 5 DISTNAME => 'o2sms', 6 ABSTRACT => 'A module to send SMS messages using .ie websites', 7 AUTHOR => 'mackers', 8 VERSION_FROM => 'bin/o2sms', 9 EXE_FILES => [ 'bin/o2sms', 'bin/vodasms', 'bin/meteorsms', 'bin/threesms', 'bin/aftsms' ], 10 PREREQ_PM => { 11 Getopt::Long => 2.33, 12 Term::ReadLine => 0, 13 Storable => 0, 14 TestGen4Web::Runner => 0.11, 15 IO::Socket::SSL => 0, 16 Net::SSLeay => 0, 17 Crypt::SSLeay => 0, 18 URI => 1.26, 19 }, 20 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 21); 22 23sub MY::postamble { 24 return <<'MAKE_FRAG'; 25 26publish-cpan: dist 27 echo "Going to upload " `ls -1t *.tar.gz | head -1` 28 sleep 2 29 echo "(Use furniture password or enter a world of pain!!)" 30 /usr/local/bin/cpan-upload -user mackers -mailto me@mackers.com -verbose `ls -1t *.tar.gz | head -1` 31 32publish-sf: dist 33 /usr/bin/scp `ls -1t *.tar.gz | head -1` mackers@frs.sourceforge.net:/home/pfs/project/o/o2/o2sms/ 34 35debuild: META.yml dist 36 mkdir /tmp/debuild-o2sms/ 37 cp `ls -1t *.tar.gz | head -1` /tmp/debuild-o2sms/ 38 cd /tmp/debuild-o2sms/ && tar -zxvf *.tar.gz 39 rm /tmp/debuild-o2sms/*.tar.gz 40 cp -R debian /tmp/debuild-o2sms/o2sms* 41 cd /tmp/debuild-o2sms/o2sms* && debuild 42 rm -rf /tmp/debuild-o2sms/o2sms-* 43 mv /tmp/debuild-o2sms/* ./debuild/ 44 rmdir /tmp/debuild-o2sms/ 45 46publish-debian: dist debuild 47 echo "Going to upload" `ls -1t debuild/*.changes | head -1` 48 sleep 2 49 /usr/bin/reprepro -Vb /var/www/hosts/apt.mackers.com/htdocs/ include unstable `ls -1t debuild/*.changes | head -1` 50 find /var/www/hosts/apt.mackers.com/htdocs/ -name 'Release' -exec gpg -abs -o '{}.gpg' '{}' \; 51 52publish-mackers.com: dist 53 /usr/bin/pod2html -title o2sms -htmlroot . bin/o2sms > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/usage.html 54 /usr/bin/pod2html -title WWW::SMS::IE::iesms -htmlroot . lib/WWW/SMS/IE/iesms.pm > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/WWW/SMS/IE/iesms.html 55 /usr/bin/pod2html -title WWW::SMS::IE::o2sms -htmlroot . lib/WWW/SMS/IE/o2sms.pm > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/WWW/SMS/IE/o2sms.html 56 /usr/bin/pod2html -title WWW::SMS::IE::vodasms -htmlroot . lib/WWW/SMS/IE/vodasms.pm > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/WWW/SMS/IE/vodasms.html 57 /usr/bin/pod2html -title WWW::SMS::IE::threesms -htmlroot . lib/WWW/SMS/IE/threesms.pm > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/WWW/SMS/IE/threesms.html 58 /usr/bin/pod2html -title WWW::SMS::IE::meteorsms -htmlroot . lib/WWW/SMS/IE/meteorsms.pm > /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/docs/v3/WWW/SMS/IE/meteorsms.html 59 find . -name '*.tmp' | xargs rm 60 cp `ls -1t *.tar.gz | head -1` /var/www/hosts/www.mackers.com/htdocs/projects/o2sms/releases/ 61 62unpublish-debian: 63 /usr/bin/reprepro -Vb /var/www/hosts/apt.mackers.com/htdocs/ remove unstable o2sms 64 65exe: 66 set PERL5LIB=lib 67# pp -v=3 -L pp_o2sms.log -a "c:/perl/lib/attributes.pm;./attributes.pm" -a "c:/perl/lib/Storable.pm;./Storable.pm" -o o2sms.exe -l c:/perl/bin/libeay32.dll -l c:/perl/bin/ssleay32.dll bin/o2sms 68 pp \ 69 -v=3 \ 70 -L pp_o2sms.log \ 71 -a "c:/perl/lib/attributes.pm;./attributes.pm" \ 72 -a "c:/perl/lib/Storable.pm;./Storable.pm" \ 73 -a "lib/WWW/SMS/IE/vodasms.action;./lib/WWW/SMS/IE/vodasms.action" \ 74 -a "lib/WWW/SMS/IE/o2sms.action;./lib/WWW/SMS/IE/o2sms.action" \ 75 -a "lib/WWW/SMS/IE/meteorsms.action;./lib/WWW/SMS/IE/meteorsms.action" \ 76 -a "lib/WWW/SMS/IE/threesms.action;./lib/WWW/SMS/IE/threesms.action" \ 77 -o o2sms4w.exe \ 78 -l c:/perl/bin/libeay32.dll \ 79 -l c:/perl/bin/ssleay32.dll \ 80 --gui \ 81 --icon o2sms.ico \ 82 bin/o2sms4w 83 84publish-exe: o2sms4w.exe 85 zip o2sms4w.zip o2sms4w.exe 86 scp o2sms4w.zip mackers.com:www/projects/o2sms/releases/o2sms4w.zip 87 88MAKE_FRAG 89} 90 91