mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Remove old make-src-packages script.
This commit is contained in:
parent
fb7649a8e2
commit
b32d8fd00f
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SOURCE="$( cd "$( dirname "$0" )" && cd .. && pwd )"
|
|
||||||
BUILD=${SOURCE}/build
|
|
||||||
TMP=/tmp/bro-dist.${UID}
|
|
||||||
BRO_V=`cat ${SOURCE}/VERSION`
|
|
||||||
BROCCOLI_V=`cat ${SOURCE}/aux/broccoli/VERSION`
|
|
||||||
BROCTL_V=`cat ${SOURCE}/aux/broctl/VERSION`
|
|
||||||
|
|
||||||
( mkdir -p ${BUILD} && rm -rf ${TMP} && mkdir ${TMP} )
|
|
||||||
cp -R ${SOURCE} ${TMP}/Bro-${BRO_V}
|
|
||||||
( cd ${TMP} && find . -name .git\* | xargs rm -rf )
|
|
||||||
( cd ${TMP} && find . -name \*.swp | xargs rm -rf )
|
|
||||||
( cd ${TMP} && find . -type d -name build | xargs rm -rf )
|
|
||||||
( cd ${TMP} && tar -czf ${BUILD}/Bro-all-${BRO_V}.tar.gz Bro-${BRO_V} && echo "Package: ${BUILD}/Bro-all-${BRO_V}.tar.gz" )
|
|
||||||
|
|
||||||
# TODO: Remove? -Robin
|
|
||||||
( cd ${TMP}/Bro-${BRO_V}/aux && mv broccoli Broccoli-${BROCCOLI_V} && \
|
|
||||||
tar -czf ${BUILD}/Broccoli-${BROCCOLI_V}.tar.gz Broccoli-${BROCCOLI_V} )
|
|
||||||
( cd ${TMP}/Bro-${BRO_V}/aux && mv broctl Broctl-${BROCTL_V} && \
|
|
||||||
tar -czf ${BUILD}/Broctl-${BROCTL_V}.tar.gz Broctl-${BROCTL_V} )
|
|
||||||
( cd ${TMP}/Bro-${BRO_V}/aux && rm -rf Broctl* Broccoli* )
|
|
||||||
|
|
||||||
( cd ${TMP} && tar -czf ${BUILD}/Bro-${BRO_V}.tar.gz Bro-${BRO_V} && echo "Package: ${BUILD}/Bro-${BRO_V}.tar.gz" )
|
|
||||||
|
|
||||||
rm -rf ${TMP}
|
|
||||||
echo "Distribution source tarballs have been compiled in ${BUILD}"
|
|
Loading…
Add table
Add a link
Reference in a new issue