Changeset 711:7eae2cba8191
- Timestamp:
- 12/24/08 13:52:56 (3 years ago)
- Branch:
- default
- Files:
-
- 1 added
- 1 deleted
- 2 edited
- 1 moved
-
Makefile.in (modified) (1 diff)
-
scripts/_install-posix.py (added)
-
scripts/_uninstall-posix.sh (moved) (moved from scripts/uninstall-posix) (1 prop)
-
scripts/create-package (modified) (6 diffs)
-
scripts/install-posix (deleted)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.in
r700 r711 8 8 9 9 install: 10 @( PREFIX=$(PREFIX) PYTHON=$(PYTHON) ./scripts/install-posix)10 @($(PYTHON) scripts/install-posix $(PREFIX)) 11 11 12 12 uninstall: 13 @(PREFIX=$(PREFIX) ./scripts/uninstall-posix)13 @(PREFIX=$(PREFIX) /bin/sh ./scripts/_uninstall-posix.sh) -
scripts/_uninstall-posix.sh
- Property exe deleted
-
scripts/create-package
r706 r711 40 40 41 41 42 def find_files( ):42 def find_files(force): 43 43 allowed_states = frozenset('CI?') 44 44 client = subprocess.Popen(['hg', 'status', '-A'], stdout=subprocess.PIPE) … … 48 48 continue 49 49 status, filename = line 50 if status not in allowed_states:50 if not force and status not in allowed_states: 51 51 raise BuildError('hg unclean. Uncommited modifications?') 52 52 if status == 'C' and not is_ignored(filename): … … 71 71 72 72 73 def build(dst_dir, build_dir, formats):73 def build(dst_dir, build_dir, options): 74 74 zine_version = get_zine_version() 75 75 release_name = 'Zine-%s' % '-'.join(zine_version.split()) … … 84 84 # copy all tracked files into the build dir 85 85 print 'Bootstrapping build directory [%s]' % build_dir 86 for filename in find_files( ):86 for filename in find_files(options.force): 87 87 target_folder = os.path.join(release_dir, os.path.dirname(filename)) 88 88 if not os.path.exists(target_folder): … … 124 124 try: 125 125 os.chdir(build_dir) 126 if formats.tar:126 if options.tar: 127 127 tarball_filename = archive_base + '.tar.gz' 128 128 subprocess.call(['tar', 'vczf', tarball_filename, release_name]) 129 129 messages.append('Created tarball in %s' % tarball_filename) 130 if formats.zip:130 if options.zip: 131 131 zip_filename = archive_base + '.zip' 132 132 subprocess.call(['zip', '-r', zip_filename, release_name]) … … 147 147 parser.add_option('--no-tar', dest='tar', action='store_false', 148 148 default=True, help='Do not generate a tarball') 149 parser.add_option('-f', '--force', dest='force', action='store_true', 150 default=False, help='Force build, even if local ' 151 'modifications exist.') 149 152 options, args = parser.parse_args() 150 153 if len(args) != 1:
Note: See TracChangeset
for help on using the changeset viewer.