version bump, update for modern boost, default cellar bottle path baked in
This commit is contained in:
parent
81732eab03
commit
1f9a78956b
3
cogrc
3
cogrc
@ -1,5 +1,6 @@
|
||||
[version]
|
||||
release_version=0.4
|
||||
release_version=0.5
|
||||
|
||||
[defaults]
|
||||
wine-path=wine
|
||||
cellar-bottle-path=~/.local/share/cellar/bottles
|
@ -3,8 +3,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "bottles.hpp"
|
||||
#include "cellar.hpp"
|
||||
@ -20,9 +19,9 @@ void cellar::bottles::switch_active_bottle(int argc, vector<string> argv) {
|
||||
return;
|
||||
}
|
||||
|
||||
string homepath = getenv("HOME"); // /home/nick
|
||||
string bottlepath = homepath + "/.wine"; // /home/nick/.wine
|
||||
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1]; // /home/nick/.wine.example
|
||||
string homepath = getenv("HOME");
|
||||
string bottlepath = homepath + "/.wine";
|
||||
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1];
|
||||
|
||||
file_status targetstatus = symlink_status(targetpath);
|
||||
if (!exists(targetstatus)) {
|
||||
|
@ -5,8 +5,7 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
#include "bottles.hpp"
|
||||
|
@ -2,8 +2,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "cellar.hpp"
|
||||
#include "fs.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user