Changeset 124
- Timestamp:
- 11/17/06 20:01:59 (2 years ago)
- Files:
-
- trunk/sss/main.d (modified) (6 diffs)
- trunk/sss/net.d (modified) (1 diff)
- trunk/sss/uninstall.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/sss/main.d
r123 r124 53 53 INSTALL, 54 54 UNINSTALL, 55 INSTALLED, 55 56 NET, 56 57 GENCONFIG … … 128 129 command = cmd_t.UNINSTALL; 129 130 131 } else if (arg == "installed") { 132 commandSet = true; 133 command = cmd_t.INSTALLED; 134 130 135 } else if (arg == "net") { 131 136 commandSet = true; … … 153 158 154 159 } else if (command == cmd_t.CLEAN || 155 command == cmd_t.DISTCLEAN) { 160 command == cmd_t.DISTCLEAN || 161 command == cmd_t.INSTALLED) { 156 162 /* commands that take no options whatsoever */ 157 163 if (argIsHelp()) { … … 236 242 case cmd_t.UNINSTALL: 237 243 return sss.uninstall.uninstall(buildElems); 244 break; 245 246 case cmd_t.INSTALLED: 247 return sss.uninstall.installed(); 238 248 break; 239 249 … … 264 274 install: install all or some binaries or libraries 265 275 uninstall: uninstall a specified tool or library 276 installed: list installed software 266 277 net: Internet-based installation and package management 267 278 genconfig: generate a config file … … 307 318 ); 308 319 320 } else if (command == cmd_t.INSTALLED) { 321 writefln( 322 `Usage: dsss [dsss options] installed` 323 ); 324 309 325 } else if (command == cmd_t.NET) { 310 326 writefln( 311 327 `Usage: dsss [dsss options] net <net command> <package name> 312 328 Net Commands: 313 deps: Install (from the network source) dependencies of the present329 deps: install (from the network source) dependencies of the present 314 330 package 315 install: Install a package via the network source316 fetch: Fetch but do not compile or install a package317 list: List all installable packages318 search: Find an installable package by name`331 install: install a package via the network source 332 fetch: fetch but do not compile or install a package 333 list: list all installable packages 334 search: find an installable package by name` 319 335 ); 320 336 trunk/sss/net.d
r123 r124 512 512 " -o " ~ pfile); 513 513 514 // convert it to DOS line endings if necessary 515 version (Windows) { 516 saySystemDie("unix2dos " ~ pfile); 517 } 518 514 519 // install the patch 515 520 system("patch -p0 -i " ~ pfile); trunk/sss/uninstall.d
r86 r124 68 68 return 0; 69 69 } 70 71 /** Entry to the "installed" function */ 72 int installed() 73 { 74 foreach (pkg; listdir(manifestPrefix).sort) 75 { 76 if (pkg.length < 9 || pkg[$-9 .. $] != ".manifest") continue; 77 pkg = pkg[0 .. $-9]; 78 79 writefln("%s", pkg); 80 } 81 82 return 0; 83 }
