/[vps]/baselayout-vserver/trunk/tarball.sh
Gentoo

Contents of /baselayout-vserver/trunk/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 195 - (show annotations) (download) (as text)
Tue Jan 10 15:42:25 2006 UTC (8 years, 7 months ago) by phreak
File MIME type: text/x-sh
File size: 1148 byte(s)
Forgot to rename NAME to baselayout-vserver
1 #!/bin/bash
2 export TMP="${TMP:-/tmp}"
3 export V="1.13.0"
4 export NAME="baselayout-vserver"
5 export DEST="${TMP}/${NAME}-${V}"
6
7 if [[ $1 != "-f" ]] ; then
8 echo "Performing sanity checks (run with -f to skip) ..."
9
10 # Check that we're updated
11 svnfiles=$( svn status 2>&1 | egrep -v '^(U|P)' )
12 if [[ -n ${svnfiles} ]] ; then
13 echo "Refusing to package tarball until svn is in sync:"
14 echo "$svnfiles"
15 exit 1
16 fi
17 fi
18
19 echo "Creating tarball ..."
20 rm -rf ${DEST}
21 install -d -m0755 ${DEST}
22
23 for x in bin etc init.d sbin src rc-lists man ; do
24 cp -ax $x ${DEST}
25 done
26
27 # do not yet package src/core stuff
28 #rm -rf ${DEST}/src/core
29
30 # copy net-scripts and remove older stuff
31 install -d -m0755 ${DEST}/lib/rcscripts
32 cp -ax net-scripts/init.d ${DEST}
33 cp -ax net-scripts/net.modules.d ${DEST}/lib/rcscripts
34 cp -ax net-scripts/conf.d ${DEST}/etc
35 ln -sfn net.lo ${DEST}/init.d/net.eth0
36
37 cp ChangeLog ${DEST}
38
39 chown -R root:root ${DEST}
40 chmod 0755 ${DEST}/sbin/*
41 chmod 0755 ${DEST}/init.d/*
42 ( cd $TMP/${NAME}-${V} ; rm -rf `find -iname .svn` )
43 cd $TMP
44 tar cjvf ${TMP}/${NAME}-${V}.tar.bz2 ${NAME}-${V}
45 rm -rf ${NAME}-${V}
46
47 echo
48 du -b ${TMP}/${NAME}-${V}.tar.bz2

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20