mirror of
https://github.com/rgaufman/live555.git
synced 2026-01-12 00:04:30 +08:00
26 lines
512 B
Bash
Executable File
26 lines
512 B
Bash
Executable File
#!/bin/sh
|
|
|
|
usage() {
|
|
echo "Usage: $0 <os-platform>"
|
|
exit 1
|
|
}
|
|
|
|
if [ $# -ne 1 ]
|
|
then
|
|
usage $*
|
|
fi
|
|
|
|
platform=$1
|
|
subdirs="liveMedia groupsock UsageEnvironment BasicUsageEnvironment testProgs mediaServer proxyServer hlsProxy"
|
|
|
|
for subdir in $subdirs
|
|
do
|
|
/bin/rm -f $subdir/Makefile
|
|
cat $subdir/Makefile.head config.$platform $subdir/Makefile.tail > $subdir/Makefile
|
|
chmod a-w $subdir/Makefile
|
|
done
|
|
|
|
/bin/rm -f Makefile
|
|
cat Makefile.head config.$1 Makefile.tail > Makefile
|
|
chmod a-w Makefile
|