Changeset 3111

Show
Ignore:
Timestamp:
07/09/08 11:47:42 (5 years ago)
Author:
nopper
Message:

Fixing last stuff for windows

Location:
branch/UmitPlugins/source-plugins
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • branch/UmitPlugins/source-plugins/builder.py

    r3109 r3111  
    1 # Simple python script to make os indipendent update.sh 
     1#!/usr/bin/env python 
     2# -*- coding: utf-8 -*- 
     3# Copyright (C) 2008 Adriano Monteiro Marques 
     4# 
     5# Author: Francesco Piccinno <stack.box@gmail.com> 
     6# 
     7# This program is free software; you can redistribute it and/or modify 
     8# it under the terms of the GNU General Public License as published by 
     9# the Free Software Foundation; either version 2 of the License, or 
     10# (at your option) any later version. 
     11# 
     12# This program is distributed in the hope that it will be useful, 
     13# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     15# GNU General Public License for more details. 
     16# 
     17# You should have received a copy of the GNU General Public License 
     18# along with this program; if not, write to the Free Software 
     19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     20 
     21""" 
     22Simple python script to replace update.sh 
     23""" 
    224 
    325import os 
     
    2345            os.remove(dest) 
    2446        os.rename(plugin, dest) 
    25      
     47 
    2648    os.chdir(cwd) 
    2749 
     
    3254 
    3355        build_in(sys.argv[1]) 
     56    elif len(sys.argv) == 2 and sys.argv[1].lower() == "--help": 
     57        print "Usage: %s [plugin-dir]" % sys.argv[0] 
    3458    else: 
    3559        print "[*] Building all plugins ..." 
    36          
     60 
    3761        for dir_entry in os.listdir(cwd): 
    3862            if not os.path.isdir(dir_entry) or \