3 # Autoreconf wrapper script to ensure that the source tree is
6 # re-generate files needed by configure, and created otherwise at 'dist' time
7 if [ ! -f scripts
/augeas
/nutupsconf.aug.
in ]
9 if python
-c "import re,glob,codecs"; then
10 echo "Regenerating Augeas ups.conf lens..."
11 cd scripts
/augeas
&& .
/gen-nutupsconf-aug.py
&& cd ..
/..
13 echo "----------------------------------------------------------------------"
14 echo "Warning: Python is not available."
15 echo "Skipping Augeas ups.conf lens regeneration."
16 echo "----------------------------------------------------------------------"
20 if [ ! -f scripts
/hal
/ups-nut-device.fdi.
in ] ||
[ ! -f scripts
/udev
/nut-usbups.rules.
in ]
23 echo "Regenerating the USB helper files..."
24 cd tools
&& .
/nut-usbinfo.pl
&& cd ..
26 echo "----------------------------------------------------------------------"
27 echo "Error: Perl is not available."
28 echo "Skipping the USB helper files regeneration."
29 echo "----------------------------------------------------------------------"
33 # now we can safely call autoreconf
34 echo "Calling autoreconf..."