forked from Mirrors/freeswitch
16d6e9901c
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7502 d0543943-73ff-0310-b7d9-9358b9ac24b2
31 lines
718 B
Bash
Executable File
31 lines
718 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
## update EXTRA_DIST list in Makefile.am
|
|
|
|
f="Makefile.am"
|
|
""cd ..
|
|
|
|
## remove old list
|
|
ed $f <<EOF
|
|
/^## GENERATED BY SCRIPT/,\$d
|
|
w
|
|
EOF
|
|
|
|
## insert new list
|
|
echo "## GENERATED BY SCRIPT - DO NOT EDIT BELOW" >> $f
|
|
echo "" >> $f
|
|
|
|
echo "EXTRA_DIST += patches/README \\" >> $f
|
|
for i in $(ls -1 patches/*.patch);do printf '%*s%s \\\n' 13 ' ' $i >> $f;done
|
|
echo " patches/cvs_export.sh \\
|
|
patches/patches_make.sh \\
|
|
patches/patches_apply.sh \\
|
|
patches/patches_check.sh \\
|
|
patches/extra_dist_list.sh \\
|
|
patches/update_version.sh \\
|
|
patches/update_dist.sh \\
|
|
patches/timestamp.cvsexport" >> $f
|
|
|
|
echo "" >> $f
|
|
|