/[baselayout]/branches/rc-scripts-1_6/tarball.sh
Gentoo

Contents of /branches/rc-scripts-1_6/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 975 - (show annotations) (download) (as text)
Fri Feb 18 22:17:41 2005 UTC (10 years, 5 months ago) by agriffis
File MIME type: text/x-sh
File size: 1260 byte(s)
merge from head

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

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20