This repository has been archived by the owner on Jan 29, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git-p4: depot-paths = "//depot/fIcy/main/": change = 1067]
- Loading branch information
Showing
5 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/sh | ||
# generate, tests and submits a fIcy beta distribution | ||
|
||
# basic data | ||
VERSION="$1" | ||
DATE="`date '+%Y%m%d'`" | ||
CATALOG=" | ||
Makefile AUTHORS COPYING NEWS README TODO FAQ | ||
copy.cc copy.hh fIcy.cc fIcy.hh fResync.cc hdrparse.cc hdrparse.hh | ||
http.cc http.hh icy.cc icy.hh match.cc match.hh mpeg.cc mpeg.hh | ||
msg.cc msg.hh resolver.cc resolver.hh sanitize.cc sanitize.hh | ||
socket.cc socket.hh urlencode.cc urlencode.hh urlparse.cc urlparse.hh | ||
fPls.cc plsparse.hh plsparse.cc rewrite.hh rewrite.cc base64.cc | ||
base64.hh tmparse.cc tmparse.hh htfollow.cc htfollow.hh | ||
authparse.cc authparse.hh | ||
" | ||
|
||
|
||
# trap errors | ||
set -e | ||
|
||
|
||
# suffix and version | ||
SUFFIX="${VERSION:-$DATE}" | ||
CHECK="${VERSION:-beta}" | ||
DIST="fIcy-`echo \"$SUFFIX\" | tr . _`" | ||
|
||
# check ancillary files | ||
echo "1: checking files" | ||
grep -q "FICY_VERSION.*$CHECK\"" fIcy.hh | ||
|
||
|
||
# creating distribution | ||
echo "2: creating distribution" | ||
mkdir "$DIST" | ||
cp -p $CATALOG "$DIST" | ||
tar cf - "$DIST" | gzip -9 > "$DIST.tar.gz" | ||
rm -rf "$DIST" | ||
|
||
|
||
# check | ||
echo "3: checking distribution" | ||
gzip -dc "$DIST.tar.gz" | tar xf - | ||
cd "$DIST" | ||
pmake || make | ||
test -x fIcy -a -x fResync -a -x fPls | ||
cd .. | ||
rm -rf "$DIST" | ||
|
||
|
||
# ok | ||
echo "= generated $DIST:" | ||
gzip -dc "$DIST.tar.gz" | tar tvf - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters