/[baselayout]/tags/baselayout-1.12.5/tarball.sh
Gentoo

Contents of /tags/baselayout-1.12.5/tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2240 - (show annotations) (download) (as text)
Thu Sep 14 10:13:11 2006 UTC (7 years, 11 months ago) by uberlord
File MIME type: text/x-sh
File size: 1219 byte(s)
tag 1.12.5
1 #!/bin/bash
2 export TMP="${TMP:-/tmp}"
3 export V="1.12.5"
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 --no-ignore 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 # Make clean
31 (cd ${DEST}/src; make clean)
32 (cd ${DEST}/src/core; make clean)
33
34 # copy net-scripts and remove older stuff
35 install -d -m0755 ${DEST}/lib/rcscripts
36 cp -ax net-scripts/init.d ${DEST}
37 cp -ax net-scripts/net ${DEST}/lib/rcscripts
38 cp -ax net-scripts/conf.d ${DEST}/etc
39 ln -sfn net.lo ${DEST}/init.d/net.eth0
40
41 cp ChangeLog ${DEST}
42
43 chown -R root:root ${DEST}
44 chmod 0755 ${DEST}/sbin/*
45 chmod 0755 ${DEST}/init.d/*
46 ( cd $TMP/${NAME}-${V} ; rm -rf `find -iname .svn` )
47 cd $TMP
48 tar cjvf ${TMP}/${NAME}-${V}.tar.bz2 ${NAME}-${V}
49 rm -rf ${NAME}-${V}
50
51 echo
52 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