diff --git a/build_for_ppa.py b/build_dists.py similarity index 77% rename from build_for_ppa.py rename to build_dists.py index f0c4e28..cc147e9 100755 --- a/build_for_ppa.py +++ b/build_dists.py @@ -19,11 +19,29 @@ import time package='pdf2htmlex' ppa_name='ppa:pdf2htmlex/pdf2htmlex' -supported_distributions=('cosmic',) +supported_distributions=('bionic',) dist_pattern=re.compile('|'.join(['\\) '+i for i in supported_distributions])) archive_cmd='(rm CMakeCache.txt || true) && cmake . && make dist' archive_suffix='.tar.bz2' +if os.path.exists('../build-area'): + sys.stdout.write('Build area already exists, delete to continue?(y/n)') + sys.stdout.flush() + ans = raw_input().lower() + while ans not in ['y', 'n']: + sys.stdout.write('I don\'t understand, enter \'y\' or \'n\':') + ans = raw_input().lower() + + if ans == 'n': + print 'Skipped.' + sys.exit(0) + + if os.system('rm -rf ../build-area') != 0: + print 'Failed to clean up old build directory' + sys.exit(-1) + + os.mkdir('../build-area') + print 'Generating version...' try: version = re.findall(r'set\(PDF2HTMLEX_VERSION\s*"([^"]*)"\)', open('CMakeLists.txt').read())[0] @@ -74,7 +92,6 @@ if os.system(archive_cmd) != 0: sys.exit(-1) orig_tar_filename = package+'-'+version+archive_suffix -os.mkdir('../build-area') if os.system('test -e %s && cp %s ../build-area/' % (orig_tar_filename, orig_tar_filename)) != 0: print 'Cannot copy tarball file to build area' sys.exit(-1) @@ -109,27 +126,28 @@ for cur_dist in supported_distributions: with open('debian/changelog', 'w') as f: f.write(dist_pattern.sub('~%s1) %s' % (cur_dist, cur_dist), changelog, 1)) - # building for ppa - if os.system('debuild -S -sa') != 0: - print 'Failed in debuild' - sys.exit(-1) - - print - sys.stdout.write('Everything seems to be good so far, upload?(y/n)') - sys.stdout.flush() - ans = raw_input().lower() - while ans not in ['y', 'n']: - sys.stdout.write('I don\'t understand, enter \'y\' or \'n\':') - ans = raw_input().lower() - - if ans == 'n': - print 'Skipped.' - sys.exit(0) - - print 'Uploading' - if os.system('dput %s ../%s' % (ppa_name, package+'_'+full_deb_version+'~'+cur_dist+'1_source.changes')) != 0: - print 'Failed in uploading by dput' - sys.exit(-1) +# No PPA Orginization set up, only building dpkg +# # building for ppa +# if os.system('debuild -S -sa') != 0: +# print 'Failed in debuild' +# sys.exit(-1) +# +# print +# sys.stdout.write('Everything seems to be good so far, upload?(y/n)') +# sys.stdout.flush() +# ans = raw_input().lower() +# while ans not in ['y', 'n']: +# sys.stdout.write('I don\'t understand, enter \'y\' or \'n\':') +# ans = raw_input().lower() +# +# if ans == 'n': +# print 'Skipped.' +# sys.exit(0) +# +# print 'Uploading' +# if os.system('dput %s ../%s' % (ppa_name, package+'_'+full_deb_version+'~'+cur_dist+'1_source.changes')) != 0: +# print 'Failed in uploading by dput' +# sys.exit(-1) # building for dpkg if os.system('dpkg-buildpackage') != 0: diff --git a/debian/changelog b/debian/changelog index 298426a..83bb770 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,4 @@ -pdf2htmlex (0.17.0-1~git201909200825r21a9f-0ubuntu1) cosmic; urgency=low - - * Package for 18.10 - - -- Trent Petersen Fri, 20 Sep 2019 08:18:28 -0500 - -pdf2htmlex (0.16.0-1~git201909191126r32f7c-0ubuntu1) bionic; urgency=low +pdf2htmlex (0.16.0-1~git20190920r21a9f-0ubuntu1) bionic; urgency=low * Package for 18.04 @@ -24,7 +18,7 @@ pdf2htmlex (0.11-1~git201311042119refddc-0ubuntu1) saucy; urgency=low pdf2htmlex (0.11-1~git201310172203re1b11-0ubuntu1) raring; urgency=low - * Fix typo in dependencies + * Fix typo in dependencies -- WANG Lu Thu, 17 Oct 2013 22:03:42 +0800 @@ -60,7 +54,7 @@ pdf2htmlex (0.9-1~git201305291247rf655a-0ubuntu1) raring; urgency=low pdf2htmlex (0.8-1~git201305051429r92eab-0ubuntu1) raring; urgency=low - * v0.8 released, see Changelog + * v0.8 released, see Changelog -- WANG Lu Sun, 05 May 2013 14:29:07 +0800 @@ -100,7 +94,7 @@ pdf2htmlex (0.7-1~git201302271054r3bc73-0ubuntu1) precise; urgency=low pdf2htmlex (0.7-1~git201302271053r3bc73-0ubuntu1) quantal; urgency=low - * Fix packpage dependency + * Fix packpage dependency -- WANG Lu Wed, 27 Feb 2013 10:52:17 +0800 @@ -124,7 +118,7 @@ pdf2htmlex (0.7-1~git201301292229r2595c-0ubuntu1) quantal; urgency=low pdf2htmlex (0.7-1~git201301282229r2595c-0ubuntu1) quantal; urgency=low - * Process PDF Outline + * Process PDF Outline -- WANG Lu Mon, 28 Jan 2013 22:29:35 +0800 @@ -136,7 +130,7 @@ pdf2htmlex (0.7-1~git201301261427r2595c-0ubuntu1) quantal; urgency=low pdf2htmlex (0.6-1~git201212182148rd76af-0ubuntu1) quantal; urgency=low - * fix dependency of poppler for quantal + * fix dependency of poppler for quantal -- WANG Lu Tue, 18 Dec 2012 21:48:35 +0800 @@ -148,98 +142,98 @@ pdf2htmlex (0.6-1~git201212111844rd76af-0ubuntu1) quantal; urgency=low pdf2htmlex (0.6-1~git201210070052rcb9a8-0ubuntu1) precise; urgency=low - * New version + * New version -- WANG Lu Sun, 07 Oct 2012 00:52:42 +0800 pdf2htmlex (0.5-1~git201210051800rbaa37-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Fri, 05 Oct 2012 18:00:48 +0800 pdf2htmlex (0.5-1~git201209270317r6fa14-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Thu, 27 Sep 2012 03:17:02 +0800 pdf2htmlex (0.5-1~git201209261622r170a0-0ubuntu1) precise; urgency=low - * new version + * new version -- WANG Lu Wed, 26 Sep 2012 16:22:50 +0800 pdf2htmlex (0.4-1~git201209241628r30aee-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Mon, 24 Sep 2012 16:28:18 +0800 pdf2htmlex (0.4-1~git201209170124r8b4ec-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Mon, 17 Sep 2012 01:24:29 +0800 pdf2htmlex (0.4-1~git201209162328r8b4ec-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Sun, 16 Sep 2012 23:28:03 +0800 pdf2htmlex (0.3-1~git201209152353rf02e1-0ubuntu1) precise; urgency=low - * Regularly re-packing. + * Regularly re-packing. -- WANG Lu Sat, 15 Sep 2012 23:53:43 +0800 pdf2htmlex (0.3-1~git201209071504ra0de6-0ubuntu1) precise; urgency=low - * fix build - * 0.3 comes with more bug fixed + * fix build + * 0.3 comes with more bug fixed -- WANG Lu Fri, 07 Sep 2012 15:04:09 +0800 pdf2htmlex (0.2-3~git201209052329rbc256-0ubuntu1) precise; urgency=low - * Change dependency of fontforge + * Change dependency of fontforge -- WANG Lu Wed, 05 Sep 2012 23:29:49 +0800 pdf2htmlex (0.2-3~git201209030158r926cf-0ubuntu1) precise; urgency=low - * Fix dependency of libpoppler27 + * Fix dependency of libpoppler27 -- WANG Lu Mon, 03 Sep 2012 01:58:42 +0800 pdf2htmlex (0.2-3~git201209010002rfe7b3-0ubuntu1) precise; urgency=low - * update license + * update license -- WANG Lu Sat, 01 Sep 2012 00:02:23 +0800 pdf2htmlex (0.2-3~git201208312351rd12b8-0ubuntu1) precise; urgency=low - * 0.2dev, many bugs fixed + * 0.2dev, many bugs fixed -- WANG Lu Fri, 31 Aug 2012 23:51:57 +0800 pdf2htmlex (0.1-3~git201208281638r1addb-0ubuntu1) precise; urgency=low - * Add debian files + * Add debian files -- WANG Lu Tue, 28 Aug 2012 16:38:19 +0800 pdf2htmlex (0.1-3~git201208281523r80dc3-0ubuntu1) precise; urgency=low - * Add dependency libpng + * Add dependency libpng -- WANG Lu Tue, 28 Aug 2012 15:22:22 +0800 pdf2htmlex (0.1-3~git201208281431r383b1-0ubuntu1) precise; urgency=low - * Updated CMakeList.txt + * Updated CMakeList.txt -- WANG Lu Tue, 28 Aug 2012 14:29:43 +0800 @@ -251,7 +245,7 @@ pdf2htmlex (0.1-3~git201208281420rc53d7-0ubuntu1) precise; urgency=low pdf2htmlex (0.1-3~git201208281356r5731e-0ubuntu1) precise; urgency=low - * Fix version for package + * Fix version for package -- WANG Lu Tue, 28 Aug 2012 13:46:09 +0800