Mercurial > libpst
annotate contrib/moz-script @ 388:292ad0f71fd4
Add operator and quotes to the AX_PYTHON_DEVEL parameter
The operator is required and the quotes are needed to protect PYTHON_VERSION.
See-also: https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
Fixes:
checking whether to build the libpst python interface... yes
checking for python build information...
checking for python3.7... python3.7
checking for main in -lpython3.7... no
checking for main in -lpython3.7m... yes
results of the Python check:
Binary: python3.7
Library: python3.7m
Include Dir: /usr/include/python3.7m
checking for python3.7... /usr/bin/python3.7
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python 3.7... File "<string>", line 1
import sys; ver = sys.version.split ()[0]; print (ver 3.7)
^
SyntaxError: invalid syntax
no
configure: error: this package requires Python 3.7.
If you have it installed, but it isn't the default Python
interpreter in your system path, please pass the PYTHON_VERSION
variable to configure. See ``configure --help'' for reference.
author | Paul Wise <pabs3@bonedaddy.net> |
---|---|
date | Sat, 21 Dec 2019 21:25:45 +0800 |
parents | c508ee15dfca |
children |
rev | line source |
---|---|
16 | 1 #!/bin/bash |
2 | |
3 # Helper script to convert to Mozilla mail format | |
4 # Author: David Binard <binard@users.sf.net> | |
5 | |
6 # Taken from: <http://sourceforge.net/tracker/index.php?func=detail&aid=938792&group_id=18756&atid=318756> | |
7 # Note: this assumes readpst was run with the -r | |
8 # (recursive) option. | |
9 | |
10 | |
11 if [ "$#" != 1 ]; then | |
12 echo "Usage: `basename $0` <folder>" | |
13 exit 1 | |
14 fi | |
15 | |
16 process_dir() { | |
17 echo Processing directory "$1" | |
18 for item in "$1/"*; do | |
19 if [ -d "$item" ]; then | |
20 mv "$item" "$item.sbd" | |
21 touch "$item" | |
22 process_dir "$item.sbd" | |
23 elif [ "`basename \"$item\"`" = mbox ]; then | |
24 mv "$item" "${item%%.sbd/mbox}" | |
25 else | |
26 echo ERROR: invalid item "$item" | |
27 exit 1 | |
28 fi | |
29 done | |
30 } | |
31 | |
32 item="$1" | |
33 mv "$item" "$item.sbd" | |
34 touch "$item" | |
35 process_dir "$item.sbd" | |
36 |