/[gentoo-src]/rc-scripts/tarball.sh
Gentoo

Contents of /rc-scripts/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.104 - (hide annotations) (download) (as text)
Tue Apr 19 15:55:31 2005 UTC (9 years, 3 months ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Changes since 1.103: +1 -1 lines
File MIME type: text/x-sh
* rc-scripts 1.7.1

1 drobbins 1.1 #!/bin/bash
2 vapier 1.94 export TMP="${TMP:-/tmp}"
3 uberlord 1.104 export V="1.7.1"
4 drobbins 1.1 export DEST="${TMP}/rc-scripts-${V}"
5 vapier 1.99
6 vapier 1.100 if [[ $1 != "-f" ]] ; then
7     echo "Performing sanity checks (run with -f to skip) ..."
8 agriffis 1.103
9     # Check for leftover conflicts
10 vapier 1.100 cvsfiles=$(find . -name '.#*')
11     if [[ -n ${cvsfiles} ]] ; then
12     echo "Refusing to package tarball until these files are removed:"
13     echo "$cvsfiles"
14     exit 1
15     fi
16 agriffis 1.103
17     # Check that we're updated
18     cvsroot=$(<CVS/Root)
19     cvsroot=${cvsroot/-mux:/}
20     cvsfiles=$(cvs -d "$cvsroot" update 2>&1 | egrep -v '^(U|P)')
21 vapier 1.100 if [[ -n ${cvsfiles} ]] ; then
22     echo "Refusing to package tarball until cvs is in sync:"
23     echo "$cvsfiles"
24     exit 1
25     fi
26 vapier 1.99 fi
27    
28     echo "Creating tarball ..."
29 drobbins 1.1 rm -rf ${DEST}
30     install -d -m0755 ${DEST}
31 agriffis 1.87
32 vapier 1.99 for x in bin etc init.d sbin src rc-lists man ; do
33 drobbins 1.1 cp -ax $x ${DEST}
34     done
35 agriffis 1.87
36 azarah 1.101 # do not yet package src/core stuff
37     rm -rf ${DEST}/src/core
38    
39 agriffis 1.87 # copy net-scripts and remove older stuff
40 agriffis 1.89 install -d -m0755 ${DEST}/lib/rcscripts
41 agriffis 1.87 cp -ax net-scripts/init.d ${DEST}
42 agriffis 1.89 cp -ax net-scripts/net.modules.d ${DEST}/lib/rcscripts
43 agriffis 1.87 cp -ax net-scripts/conf.d ${DEST}/etc
44     ln -sfn net.lo ${DEST}/init.d/net.eth0
45    
46 azarah 1.17 cp ChangeLog ${DEST}
47 agriffis 1.87
48 agriffis 1.83 chown -R root:root ${DEST}
49 drobbins 1.1 chmod 0755 ${DEST}/sbin/*
50     chmod 0755 ${DEST}/init.d/*
51 woodchip 1.14 ( cd $TMP/rc-scripts-${V} ; rm -rf `find -iname CVS` )
52 drobbins 1.1 cd $TMP
53     tar cjvf ${TMP}/rc-scripts-${V}.tar.bz2 rc-scripts-${V}
54 azarah 1.21 rm -rf rc-scripts-${V}
55 vapier 1.91
56     echo
57 vapier 1.99 du -b ${TMP}/rc-scripts-${V}.tar.bz2

  ViewVC Help
Powered by ViewVC 1.1.20