GitHub issues can also be used to report HCL updates
[networkupstools/kirr.git] / autogen.sh
blob323b167b4bebc1a2c3ceb15cdce040f759e365f1
1 #! /bin/sh
3 # Autoreconf wrapper script to ensure that the source tree is
4 # in a buildable state
6 # re-generate files needed by configure, and created otherwise at 'dist' time
7 if [ ! -f scripts/augeas/nutupsconf.aug.in ]
8 then
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 ../..
12 else
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 ]
21 then
22 if perl -e 1; then
23 echo "Regenerating the USB helper files..."
24 cd tools && ./nut-usbinfo.pl && cd ..
25 else
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..."
35 autoreconf -i