Contents of /trunk/pkgtools/add2allsvn-r11.sh
Parent Directory | Revision Log
Revision 2017 -
(show annotations)
(download)
(as text)
Thu Jan 3 10:02:24 2013 UTC (11 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 839 byte(s)
Thu Jan 3 10:02:24 2013 UTC (11 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 839 byte(s)
-added more scripts
1 | #!/bin/bash |
2 | |
3 | ALL_SVN_ARCHS="x86_64 i686" |
4 | ADD2SVN="/home/tjoke/add2svn-r11.sh" |
5 | UNAME_HACK_PARENT_DIR="/home/tjoke" |
6 | |
7 | die() { echo "Error: $@"; exit 1; } |
8 | |
9 | # check for loaded uname_hack |
10 | if [[ ! -z $(lsmod | grep uname_hack) ]] |
11 | then |
12 | die "uname_hack module is loaded!" |
13 | fi |
14 | |
15 | for i in ${ALL_SVN_ARCHS} |
16 | do |
17 | # uname_hack module location |
18 | UNAME_HACK_MODULE="${UNAME_HACK_PARENT_DIR}/uname_hack-${i}/uname_hack.ko" |
19 | |
20 | # load uname_hack |
21 | if [[ -f ${UNAME_HACK_MODULE} ]] |
22 | then |
23 | echo "Loading uname hack for arch ${i}..." |
24 | sudo insmod ${UNAME_HACK_MODULE} |
25 | fi |
26 | |
27 | #CURARCH=${i} ${ADD2SVN} $@ || die "adding arch ${i} failed!" |
28 | CURARCH=${i} ${ADD2SVN} "$1" "$2" "$3" || die "adding arch ${i} failed!" |
29 | |
30 | # unload uname_hack |
31 | if [[ -f ${UNAME_HACK_MODULE} ]] |
32 | then |
33 | echo "Unloading uname hack for arch ${i}..." |
34 | sudo rmmod ${UNAME_HACK_MODULE} |
35 | fi |
36 | done |
37 |
Properties
Name | Value |
---|---|
svn:executable | * |