[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-internet/ -> build_se3-internet.sh (source)

   1  #!/bin/bash
   2  # $Id: build_se3-internet.sh 5964 2010-11-20 15:32:32Z dbo $
   3  
   4  SE3MODULE="se3-internet"
   5  PATH_SVN_LOCAL="/home/denis/se3-work/"
   6  PATH_SE3MODULE="$PATH_SVN_LOCAL}$SE3MODULE}"
   7  PATH_SE3MODULE="/home/denis/se3-work/se3-internet"
   8  
   9  SOURCE_DIR="sources"
  10  #Couleurs
  11  COLTITRE="\033[1;35m"    # Rose
  12  COLPARTIE="\033[1;34m"    # Bleu
  13  
  14  COLTXT="\033[0;37m"    # Gris
  15  COLCHOIX="\033[1;33m"    # Jaune
  16  COLDEFAUT="\033[0;33m"    # Brun-jaune
  17  COLSAISIE="\033[1;32m"    # Vert
  18  
  19  COLCMD="\033[1;37m"    # Blanc
  20  
  21  COLERREUR="\033[1;31m"    # Rouge
  22  COLINFO="\033[0;36m"    # Cyan
  23  
  24  
  25  ERREUR()
  26  {
  27  echo -e "$COLERREUR"
  28  echo "ERREUR!"
  29  echo -e "$1"
  30  echo -e "$COLTXT"
  31  exit 1
  32  }
  33  
  34  
  35  
  36  POURSUIVRE()
  37  {
  38  REPONSE=""
  39  while [ "$REPONSE" != "o" -a "$REPONSE" != "O" -a "$REPONSE" != "n" ]
  40  do
  41  #echo -e "$COLTXT"
  42  echo -e "$COLTXT}Peut-on poursuivre ? ($COLCHOIX}O/n$COLTXT}) $COLSAISIE\c"
  43  read REPONSE
  44  if [ -z "$REPONSE" ]; then
  45  REPONSE="o"
  46  fi
  47  done
  48  echo -e "$COLTXT"
  49  if [ "$REPONSE" != "o" -a "$REPONSE" != "O" ]; then
  50  ERREUR "Abandon!"
  51  fi
  52  }
  53  
  54  
  55  
  56  svn update $PATH_SE3MODULE || exit 1
  57  
  58  cp -a "$PATH_SE3MODULE" /tmp/
  59  cd /tmp/
  60  
  61  echo "Suppression reps .svn"
  62  
  63  find ./$SE3MODULE -name .svn -print0 | xargs -0 rm -r
  64  
  65  
  66  echo "construction du paquet $SE3MODULE"
  67  POURSUIVRE
  68  cd $SE3MODULE/$SOURCE_DIR
  69  dh_clean
  70  debuild -uc -us -b
  71  cd ..
  72  cp *.deb "$PATH_SE3MODULE"/
  73  cd /tmp
  74  rm -rf $SE3MODULE
  75  cd $PATH_SE3MODULE
  76  
  77  echo "copie sur le dépot se3XP du paquet $SE3MODULE"
  78  POURSUIVRE
  79  #scp -P 2222 $SE3MODULE*.deb root@wawadeb:/var/ftp/debian/dists/stable/se3XP/binary-i386/net/
  80  ftp ftpperso.free.fr user denis.bonnenfant mput $SE3MODULE*.deb se3


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1