/[baselayout]/branches/baselayout-1_12/tarball.sh
Gentoo

Contents of /branches/baselayout-1_12/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2005 - (show annotations) (download) (as text)
Fri Apr 21 15:35:04 2006 UTC (8 years, 4 months ago) by uberlord
File MIME type: text/x-sh
File size: 1136 byte(s)
move /lib/rcscripts/net.modules.d to /lib/rcscripts/net
1 #!/bin/bash
2 export TMP="${TMP:-/tmp}"
3 export V="1.12.0_pre17"
4 export NAME="baselayout"
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 ${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:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20