|
|
fddffbe |
diff -rupN cdbs-0.4.131/scripts/waf-unpack cdbs-0.4.131-new/scripts/waf-unpack
|
|
|
fddffbe |
--- cdbs-0.4.131/scripts/waf-unpack 2016-05-11 14:01:51.000000000 +0200
|
|
|
fddffbe |
+++ cdbs-0.4.131-new/scripts/waf-unpack 2016-05-12 10:08:52.300229531 +0200
|
|
|
0786e63 |
@@ -1,4 +1,4 @@
|
|
|
0786e63 |
-#!/usr/bin/python
|
|
|
0786e63 |
+#!/usr/bin/python3
|
|
|
0786e63 |
# -*- mode: python; coding: utf-8 -*-
|
|
|
0786e63 |
#
|
|
|
0786e63 |
# Most of this code was stolen from Waf which is:
|
|
|
0786e63 |
@@ -18,6 +18,8 @@
|
|
|
0786e63 |
# You should have received a copy of the GNU General Public License
|
|
|
0786e63 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
fddffbe |
|
|
|
0786e63 |
+from __future__ import print_function
|
|
|
0786e63 |
+
|
|
|
0786e63 |
usage = '''
|
|
|
0786e63 |
|
|
|
0786e63 |
python waf-unpack --waf=WAF_FILE --dest=DEST_FOLDER
|
|
|
0786e63 |
@@ -114,11 +116,11 @@ if __name__ == '__main__':
|
|
|
0786e63 |
(options, args) = parser.parse_args()
|
|
|
0786e63 |
|
|
|
0786e63 |
if not options.waf and not options.dest:
|
|
|
0786e63 |
- print '--waf and --dest options are mandatory'
|
|
|
0786e63 |
+ print('--waf and --dest options are mandatory')
|
|
|
0786e63 |
parser.print_help()
|
|
|
0786e63 |
sys.exit(1)
|
|
|
0786e63 |
|
|
|
0786e63 |
- print 'Unpacking ' + options.waf + ' to ' + options.dest + ' ...'
|
|
|
0786e63 |
+ print('Unpacking ' + options.waf + ' to ' + options.dest + ' ...')
|
|
|
0786e63 |
unpack_waf(options.waf, options.dest)
|
|
|
0786e63 |
- print 'Done'
|
|
|
0786e63 |
+ print('Done')
|
|
|
0786e63 |
|