2008-05-18 19:17:49 +02:00
|
|
|
#!/bin/sh
|
2018-01-04 22:59:07 +01:00
|
|
|
# vgmstream autotools script - automake/autoconf init
|
2008-05-18 19:17:49 +02:00
|
|
|
|
2017-05-01 13:33:45 +02:00
|
|
|
|
|
|
|
# gets all files and updates .am scripts to avoid having to do manually (frowned upon by automake, whatevs)
|
|
|
|
# maybe there is a better way or place for this
|
2024-02-11 22:38:35 +01:00
|
|
|
VGMSTREAM_SRCS=`(cd ./src/ && ls *.c */*.c */*/*.c) | tr '\n' ' '`
|
|
|
|
VGMSTREAM_HDRS=`(cd ./src/ && ls *.h */*.h */*/*.h) | tr '\n' ' '`
|
2017-05-01 17:08:52 +02:00
|
|
|
AUDACIOUS_SRCS=`(cd ./audacious/ && ls *.cc) | tr '\n' ' '`
|
|
|
|
AUDACIOUS_HDRS=`(cd ./audacious/ && ls *.h) | tr '\n' ' '`
|
2021-08-26 22:16:31 +02:00
|
|
|
|
|
|
|
# in case some distro sed doesn't support | separator and must use /, all slashes need to be escaped first
|
|
|
|
#VGMSTREAM_SRCS=$(echo "$VGMSTREAM_SRCS" | sed 's/\//\\\//g')
|
|
|
|
|
|
|
|
sed -i -e "s|libvgmstream_la_SOURCES =.*|libvgmstream_la_SOURCES = $VGMSTREAM_SRCS|g" ./src/Makefile.autotools.am
|
|
|
|
sed -i -e "s|EXTRA_DIST =.*|EXTRA_DIST = $VGMSTREAM_HDRS|g" ./src/Makefile.autotools.am
|
|
|
|
|
|
|
|
sed -i -e "s|libvgmstream_la_SOURCES =.*|libvgmstream_la_SOURCES = $AUDACIOUS_SRCS|g" ./audacious/Makefile.autotools.am
|
|
|
|
sed -i -e "s|EXTRA_DIST =.*|EXTRA_DIST = $AUDACIOUS_HDRS|g" ./audacious/Makefile.autotools.am
|
2017-05-01 13:33:45 +02:00
|
|
|
|
2021-08-15 19:15:56 +02:00
|
|
|
# make version to show in about dialogs
|
2017-05-01 13:33:45 +02:00
|
|
|
# again, not very pretty
|
2021-08-15 19:15:56 +02:00
|
|
|
sh version-make.sh
|
2017-05-01 13:33:45 +02:00
|
|
|
|
|
|
|
# create fake files expected by automake and process
|
2008-05-18 22:45:30 +02:00
|
|
|
touch README AUTHORS NEWS ChangeLog
|
2008-05-18 19:17:49 +02:00
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
libtoolize --copy --force
|
2008-05-18 22:45:30 +02:00
|
|
|
automake -a
|