Skip to content

Instantly share code, notes, and snippets.

@andreagalle
Created June 1, 2020 10:40
Show Gist options
  • Save andreagalle/377cb587dd799f59f97857b66ac8ade7 to your computer and use it in GitHub Desktop.
Save andreagalle/377cb587dd799f59f97857b66ac8ade7 to your computer and use it in GitHub Desktop.
a first attempt to auto-prepend a db-version when the branch is not up to date
#!/bin/bash
db_n=9
#make intel_debug_fast
exe_name=pijet-4ea9e50
dbt_name="db${db_n}-${exe_name}"
mv "db-${exe_name}" ${dbt_name}
make install e=${dbt_name}
cd bin/
db_n=${db_n}+1
echo ${db_n}
sbag $1 ${dbt_name}
@andreagalle
Copy link
Author

if not:

Sul branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment